Monday, January 30, 2012

Magento : Get Admin Url with key

Magento : Get Admin Url with key

When we see url in magento admin we can see it is formed with secret keys and cannot be accessed without that, below is the simple way to get any url for admin with keys.

echo Mage::helper("adminhtml")->getUrl("module_name/controller_name/action_name/",array("param1"=>1,"param2"=>2));
 
Example:
echo Mage::helper("adminhtml")->getUrl("adminhtml/sales_order_create/settaxno/");