Admin Controllers

In the config.xml file of the module extension, define the following:

                        <{Namespace}_{Module} before="Mage_Adminhtml">{Namespace}_{Module}</{Namespace}_{Module}>

In the controller file, example indexController.php, define the following:
class {Namespace}_{Module}_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action {
public function indexAction() {
/* Debug code */
//Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles()); die ();


Note: This will not allow the testing of the page in the back end as this requires the use of a nonce key that is added by Magento when yo link to a URL defined in the core or in an extension. So do not assume that {base_url}{admin}{frontname}{controller}{action} will not grant access to a page. It is possible however to obtain a url with the command: Mage::helper(“adminhtml”)->getUrl(‘{frontname}/{action}’)

Leave a Reply

Your email address will not be published. Required fields are marked *