繁体   English   中英

从magento中的url获取传递的参数

[英]Get passed parameter from url in magento

我在url中传递参数,我想在根文件中获取它。 我正在使用此代码,但没有任何帮助。

require_once('../app/Mage.php');
umask(0);
Mage::app();

echo 'Store '.Mage::app()->getRequest()->getParam('store').'<br>';

如何从根文件中的url获取参数,即使$ _GET ['store']无法正常工作。

//请尝试以下代码。

error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once('app/Mage.php'); // Please check that this file included.
umask(0);
Mage::app();

echo 'Store '.Mage::app()->getRequest()->getParam('store').'<br>';

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM