I am trying to create a custom controller in admin side.
My config file as below:
<admin>
<routers>
<salesref>
<use>admin</use>
<args>
<module>Ucs_Order</module>
<frontName>salesref</frontName>
</args>
</salesref>
</routers>
</admin>
My Controller located in below:
app\code\local\Ucs\Order\controllers\Adminhtml\ReferenceController.php
Content of my controller as below,
<?php
class Ucs_Order_Adminhtml_ReferenceController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
echo 'Test';
die;
}
}
Then I am trying to access the URL as below,
http://192.168.100.68/magento/index.php/salesref/adminhtml_reference/index
But It automatically redirects to dashboard,
Whats the problem with my code?
Add Secret Key to URLs
setting toNo
inAdmin > System > Configuration > Advanced > Admin > Security (tab)
.