Mangeo 获取admin地址 How to get base url of admin in magento

If you want to get the base url of an admin,You can use one of the below code as your requirement.If you want to get the base url of an admin,You can use one of the below code as your requirement.

$route = '*/customer/index/';
Mage::helper('adminhtml')->getUrl($route);
$this->getUrl($route);
Mage::helper('adminhtml')->getUrl('*/customer/index/');
$params = array('id'=>1);
Mage::helper('adminhtml')->getUrl($route, $params);
$this->getUrl('adminhtml/system_config/edit', array('section'=>'web', 'store'=>$code));
$this->getUrl('adminhtml/customer/edit', array('id'=>1));

 

来源:http://sanjeevkumarjha.com.np/how-to-get-base-url-of-admin-panel-in-magento/

 

 

 

你可能感兴趣的:(agent)