Php Magento通过重定向上的查询字符串传递数据
我们试图在操作完成后通过重定向传递布尔值,但我们无法确定如何传递 重定向的代码是:Php Magento通过重定向上的查询字符串传递数据,php,magento,redirect,query-string,Php,Magento,Redirect,Query String,我们试图在操作完成后通过重定向传递布尔值,但我们无法确定如何传递 重定向的代码是: $this->\u重定向('adminhtml/salesapp/index') 有人知道我们如何传递这样的数据吗? $this->_重定向('adminhtml/salesapp/index?success=TRUE')使用 $this->_redirectUrl() 要在url中传递查询,请执行以下操作 $this->getUrl('module/controller/action', arra
$this->\u重定向('adminhtml/salesapp/index')代码>
有人知道我们如何传递这样的数据吗?
$this->_重定向('adminhtml/salesapp/index?success=TRUE')代码>使用
$this->_redirectUrl()
要在url中传递查询,请执行以下操作
$this->getUrl('module/controller/action', array('_query'=>'a=2&b=5'))
$this->_redirectUrl($this->getUrl('module/controller/action', array('_query'=>'a=2&b=5')));
所以试着这样做
$this->getUrl('module/controller/action', array('_query'=>'a=2&b=5'))
$this->_redirectUrl($this->getUrl('module/controller/action', array('_query'=>'a=2&b=5')));