i have a question about magento routeing. i have created a test module with config.xml file like this:
<admin>
<routers>
<adminhtml>
<args>
<modules>
<foo before="Mage_Adminhtml">MyCompany_MyModule_Adminhtml</foo>
</modules>
</args>
</adminhtml>
</routers>
</admin>
and action controller like this: class
MyCompany_MyModule_Adminhtml_CustomController extends
Mage_Adminhtml_Controller_Action{
public function indexAction()
{
echo "works";
}
}
and when i type in url section this link: http://mymagentosite.com/index.php/admin/custom/index
it asks me admin name and password, i type it correctly and it goes to blank page with "works" echoed. But if i am already loged in as administrator it just automaticaly goes to admin start page: http://mymagentosite.com/index.php/admin/dashboard/index/key/dd5f..
why this is happening? why i cant go to this empty page when i am already loged in as admin?