Magento: 后台获取menu链接 Getting the admin panel urls

The url for customer page in the admin panel. index.php/admin/customer/edit/id/7

echo Mage::helper('adminhtml')->getUrl('adminhtml/customer/edit/index/id',array('id'=>7));

 

The url for catalog product page in the admin panel. index.php/admin/catalog_product/edit/id/166

echo Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/edit/index/id',array('id'=>166));

 

The url for sales order in the admin panel. index.php/admin/sales_order/view/order_id/8

echo Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/view/order_id/',array('order_id'=>8));

 

The url for sales report page in the admin panel. index.php/admin/report_sales/sales

echo Mage::helper('adminhtml')->getUrl('adminhtml/report_sales/sales/');

 

The url for sales report page with some dummpy parameters in the admin panel. index.php/admin/report_sales/sales/id/123/date/20140818

echo Mage::helper('adminhtml')->getUrl('adminhtml/report_sales/sales/id/date',array('id'=>123,'date'=>20140818));

 

from: http://www.codexpedia.com/magento/magento-getting-the-admin-panel-urls/

参考:http://www.opencart60s.com/magento/how-to-get-admin-customer-edit-url-in-magento-63-nbsp--11803.html

 

原文/转自:Magento: 后台获取menu链接 Getting the admin panel urls

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(Magento: 后台获取menu链接 Getting the admin panel urls)