`
天梯梦
  • 浏览: 13630462 次
  • 性别: Icon_minigender_2
  • 来自: 洛杉矶
社区版块
存档分类
最新评论

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

 

 

 

 

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics