I want to Override magento core controller class which is present under 'Oauth' module. Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php
Module declaration xml:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<DS_Adminextended>
<active>true</active>
<codePool>local</codePool>
</DS_Adminextended>
</modules>
</config>
My config.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<DS_Adminextended>
<version>1.0.0</version>
</DS_Adminextended>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<DS_Adminextended before="Mage_Adminhtml">DS_Adminextended</DS_Adminextended>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</config>
i had also use this one but invain:
<modules>
<DS_Adminextended before="Mage_Adminhtml">DS_Adminextended_Adminhtml_Oauth</DS_Adminextended>
</modules>
and extended AuthorizeController.php :
<?php
require_once("Mage/Oauth/Adminhtml/Oauth/AuthorizeController.php");
die('bla bla bla');
class DS_Adminextended_Adminhtml_Oauth_AuthorizeController extends Mage_Oauth_Adminhtml_Oauth_AuthorizeController {
public function indexAction()
{
echo 'extendedController';exit;
$this->_initForm();
$this->_initLayoutMessages($this->_sessionName);
$this->renderLayout();
}
}
But it did not include the extended file. This 'Adminhtml' present inside the Mage/Oauth Folder not in Mage:Adminhtml So Question is how we can extend admin controller class present under non admin module like: 1) Mage/Oauth/controllers/Adminhtml/Oauth/AuthorizeController.php OR 2) Mage/Widget/controllers/Adminhtml/Widget/InstanceController.php
what i am missing in above code ?