How to Build Magento URL for Admin Pages

Categories: Magento - Tags:

If you’re developing a custom module with some admin pages, most likely you’ll face a problem of creatig a URL for some admin area.
In order to accomplish that adminhtml helper should be used. Here’s the example:

<?php echo Mage::helper(‘adminhtml’)->getUrl(‘adminmodule/controller/action’); ?>

In case you need to build a url for your controller but different action you can use wildcart instead of module and controller names, like this:

<?php echo Mage::helper(‘adminhtml’)->getUrl(‘*/*/action’); ?>

Profile - Website


No comments yet.

Write a comment

You must be logged in to write a comment.

« »