Our brands

Answer for Explain Briefly on Router.php in Controller folder of magento

Hello Jafar,
The admin route have format as this: admin_route/module_controller_name/action_name (default index). So you should define module route in etc/config.xml in module folder. For example module Ves_Blog, we define as this:
 
<admin>
<routers>
<adminhtml>
<args>
<modules>
<Ves_Blog after=”Mage_Adminhtml”>Ves_Blog_Adminhtml</Ves_Blog>
</modules>
</args>
</adminhtml>
</routers>
</admin>
 
In admin we have url to blog manager posts as this: /admin/adminblogpost/index
adminblogpost is name of controller in folder “controllers/Adminhtml/”. 
 
Please view the post to know more about the admin route: http://magento.stackexchange.com/questions/88045/how-to-update-admin-routers-of-custom-module-for-patch-supee-6788

Share this Post!

Panda Thuan
Panda Thuan
Creativity is falling in love with the world
Do NOT follow this link or you will be banned from the site!