Questions tagged [admin-controller]

Denotes questions related to Admin Area's Controller. A controller is a part of Model-View-Controller Architecture.

Filter by
Sorted by
Tagged with
18
votes
6answers
14k views

Magento 2 Custom Admin Action Redirected to Dashboard

I am taking the Magento 2 fundamentals development course and the Admin Router / Controller exercise seems out of date. The router does work, but the controller does not, it always just re-routes to ...
5
votes
1answer
3k views

Is it necessary to override _isAllowed in your Admin controller?

The _isAllowed method is where you, as a Admin Panel programmer, should place your ACL checks. As you can see, by default, this method returns true. That means if you don’t define your own ...
2
votes
2answers
4k views

How to create menu and it's controller in magento 2

I want to add my custom menu in admin and also want to add related controller for that. So how can I do that?
1
vote
2answers
9k views

Magento 2: how to redirect from an admin controller

In Magento 1, we were able to do the following directly in a controller action method : $this->_redirect('*/*/index'); Or in a more generic way: $this->_redirect('adminhtml/controller/action')...
2
votes
1answer
72 views

Overwrite admin controller in version 1.6

I am trying to overwrite the controller located at: app/core/code/Mage/Adminhtml/controllers/Catalog/ProductController.php First of all I tried just making a copy in my local code directory app/local/...
0
votes
0answers
34 views

My ajax request isn't working properly in phtml

vendor\module_name\view\adminhtml\templates\tab\customer_view.phtml <?php $buttonTitle = __('Invalidate Quotes');?> <div class="fieldset-wrapper customer-information"> <div ...
0
votes
2answers
640 views

How to create custom pdf on controller action using TCPDF in magento 2

I have added TCPDF as follows: Downloaded TCPDF library from https://github.com/tecnickcom/tcpdf and place at magento2.0/lib/internal/TCPDF Renamed tcpdf.php to TCPDF.php Opened TCPDF.php and change ...