I am creating my first custom module for magento and I already have some issues. What I am trying to do is to create new section under catalog tab in admin panel (this I already made) but when I clicked my custom section it does not finds route (or in other words it not finds index action) and I get redirected to 404 error page.
Here is what I already have: app/etc/modules/Company_myModule.xml
<?xml version="1.0"?>
<config>
<modules>
<Company_myModule>
<active>true</active>
<codePool>local</codePool>
</Company_myModule>
</modules>
</config>
app/code/local/Company/myModule/controllers/Adminhtml/ReportController.php
<?php
class Company_myModule_Adminhtml_ReportController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
echo "test";
}
}
app/code/local/Company/myModule/etc/config.xml
<?xml version="1.0" ?>
<config>
<modules>
<Company_myModule>
<version>1.0.0</version>
</Company_myModule>
</modules>
<global>
<helpers>
<Company_myModule>
<class>Company_myModule_Helper</class>
</Company_myModule>
</helpers>
</global>
</config>
app/code/local/Company/myModule/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<catalog>
<children>
<myModule translate="title" module="company_myModule">
<title>myModule title</title>
<sort_order>2</sort_order>
<action>adminhtml/report</action>
</myModule>
</children>
</catalog>
</menu>
<acl>
<resources>
<admin>
<children>
<catalog>
<title>myModule title</title>
<sort_order>2</sort_order>
</catalog>
</children>
</admin>
</resources>
</acl>
</config>
Any ideas why it not able to find route to my index action in ReportController ?