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/
如何在Magento中获取管理员面板的基本URL
本文详细介绍了在Magento平台中获取管理员面板基本URL的方法,提供了多种代码示例,帮助开发者快速实现这一功能。
695

被折叠的 条评论
为什么被折叠?



