我已经customscript.php在/shelldir中创建了一个脚本.此脚本扩展Mage_Shell_Abstract.
当我getUrl()在这个脚本中使用时,Magento会customscript.php在URL中添加.
如果我做:
Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id' => 123));
Run Code Online (Sandbox Code Playgroud)
我有:
http://mysite.com/customscript.php/admin/sales_order/view/order_id/123/key/{secret key}
Run Code Online (Sandbox Code Playgroud)
如何customscript.php在不使用str_replace()结果的情况下从URL中删除?