I am new to magento,I have created a custom module for magento backend. I don't know how to get its url, I have tried some help from online, nothing happens, please tell what should I pass into getUrl function.How should I use $url = Mage::helper("adminhtml")->getUrl('/your_module/index'); my file



            <!-- Helper definition needed by Magento -->

                    <petra_dailyorders before="Mage_Adminhtml">Petra_DailyOrders_Adminhtml</petra_dailyorders>


  • I tried answer given on this and other forums, I am unable to solve it, so now I came here for help. Nov 13, 2015 at 7:58

1 Answer 1


generate it like this:

$url = Mage::helper("adminhtml")->getUrl('admintml/your_module/index');

So you should place your controller in

Petra/DailyOrders/controllers/Adminhtml/ControllerName.php and call it like this

$url = Mage::helper("adminhtml")->getUrl('admintml/controllername/index');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.