I have the following, (Note the capital and non capital letters.)
In app/design/adminhtml/default/default/template/customertab/action.phtml
<form action="<?php echo $this->getUrl('adminhtml/customertab/reset/'); ?>" method="get"><input type="submit" value="Post This Form" /></form>
app/code/local/Sean/CustomerTab/controllers/Adminhtml/CustomerTabController.php
<?php
class Sean_CustomerTab_Adminhtml_CustomerTabController extends Mage_Adminhtml_Controller_Action
{
function resetAction()
{
die("I'm lame");
}
}
inside app/code/local/Sean/CustomerTab/etc/config.xml I have:
<config>
<modules>
<Sean_CustomerTab>
<version>0.0.1</version>
</Sean_CustomerTab>
</modules>
<adminhtml>
<layout>
<updates>
<customertab>
<file>customertab.xml</file>
</customertab>
</updates>
</layout>
</adminhtml>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<sean_customertab before="Mage_Adminhtml">Sean_CustomerTab_Adminhtml</sean_customertab>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<global>
<blocks>
<customertab>
<class>Sean_CustomerTab_Block</class>
</customertab>
</blocks>
</global>
</config>
Why when I submit this form does it not call the function resetAction in my controller and die?
I know we are suppose to do 'module/controller/action' in the getUrl
config.xmlfile. Without that, it is difficult to help you out further. – Rajeev K Tomy Nov 22 '16 at 04:10