Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento Module Admin Controller Returns 404 Error
    primarykey
    data
    text
    <p>I am creating simple reports module by following this <a href="http://codemagento.com/2011/03/creating-custom-magento-reports/" rel="nofollow">tutorial</a>.When i try to open </p> <blockquote> <p><a href="http://localhost/dev/admin/adminhtml/report_example/simple" rel="nofollow">http://localhost/dev/admin/adminhtml/report_example/simple</a></p> </blockquote> <p>i get 404 error.Any help would be appreciated.Here's what i did</p> <p>app/etc/modules/Package_Custom.xml</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Package_Custom&gt; &lt;active&gt;true&lt;/active&gt; &lt;codePool&gt;local&lt;/codePool&gt; &lt;/Package_Custom&gt; &lt;/modules&gt; &lt;/config&gt; </code></pre> <p>app/code/local/Package/Custom/controllers/Adminhtml/Report/ExampleController.php</p> <pre><code>&lt;?php class Package_Custom_Adminhtml_Report_ExampleController extends Mage_Adminhtml_Controller_Action { public function _initAction() { $this-&gt;loadLayout()-&gt;_addBreadcrumb(Mage::helper('custom')-&gt;__('Custom'),Mage::helper('custom')-&gt;__('Custom')); return $this; } } ?&gt; </code></pre> <p>app/code/local/Package/Custom/etc/adminhtml.xml</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;menu&gt; &lt;custom translate="title" module="custom"&gt; &lt;title&gt;Custom&lt;/title&gt; &lt;sort_order&gt;15&lt;/sort_order&gt; &lt;children&gt; &lt;simple translate="title" module="custom"&gt; &lt;title&gt;Simple Report&lt;&lt;/title&gt; &lt;sort_order&gt;1&lt;/sort_order&gt; &lt;action&gt;adminhtml/report_example/simple&lt;/action&gt; &lt;/simple&gt; &lt;/children&gt; &lt;/custom&gt; &lt;/menu&gt; </code></pre> <p></p> <p>app/code/local/Package/Custom/etc/config.xml</p> <pre><code> &lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Package_Custom&gt; &lt;version&gt;1.0.0&lt;/version&gt; &lt;/Package_Custom&gt; &lt;/modules&gt; &lt;admin&gt; &lt;routers&gt; &lt;adminhtml&gt; &lt;args&gt; &lt;modules&gt; &lt;custom before="Mage_Adminhtml"&gt;Package_Custom_Adminhtml&lt;/custom&gt; &lt;/modules&gt; &lt;/args&gt; &lt;/adminhtml&gt; &lt;/routers&gt; &lt;/admin&gt; &lt;/config&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload