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/");

3 comments:

  1. I think its more like

    Mage::helper("adminhtml")->getUrl("adminhtml/controllername/actionname")

    ReplyDelete
  2. The information written in the article is descriptive and well written.It is also simple to read and understand.Good Read.
    Magento Developers

    ReplyDelete
  3. I do agree with all the ideas you have presented in your post. They’re really convincing and will certainly work. Still, the posts are very short for newbies. Could you please extend them a little from next time?..Keep this great work
    magento development company in bangalore 

    ReplyDelete