Create magento custom admin menu adminhtml

This tutorial explains how to add magento custom admin menu adminhtml xml file. For add the custom menu in the magento admin section copy and paste the following code in the adminhtml xml file.

Please also refer the tutorial that explains how to create the magento module which displays data from the custom magento table in the admin grid.. Click here to download the full code.

create_magento_custom_admin_menu_adminhtml

<?xml version="1.0"?>
<config>
    <menu>
        <customgrid translate="title" module="customgrid">
            <title>Custom Grid</title>
            <sort_order>40</sort_order>
            <action>adminhtml/customgrid</action>
        </customgrid>
    </menu>
</config>

Add the following code in the config.xml

<config>
 <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <display_customgrid before="Mage_Adminhtml">Display_Customgrid_Adminhtml</display_customgrid>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>

Share this Tutorial