重定向到magento中控制器中的另一个函数
我有magento网站 我有一个控制器,如何重定向到此控制器中的另一个函数 也就是说,有两个功能:重定向到magento中控制器中的另一个函数,magento,controller,Magento,Controller,我有magento网站 我有一个控制器,如何重定向到此控制器中的另一个函数 也就是说,有两个功能: 1.test() i want to redirect from test1() to test2() 我该怎么做 How can i redirect from one function to another function in the same controller? 您可以在test1操作中放置类似的内容 $this->_redirect('*/*/test2', arra
1.test()
i want to redirect from test1() to test2()
我该怎么做
How can i redirect from one function to another function in the same controller?
您可以在test1操作中放置类似的内容
$this->_redirect('*/*/test2', array(if you want to pass something then from here you can pass ));
前端控制器中有三种重定向功能:
_redirect()
_redirectUrl()
_redirectReferer()
\u重定向('frontName/controllerName/actionName/param1/param2')
用于内部重定向。\u重定向URL($fullUrl)
用于外部重定向。\u redirectReferer()
用于重定向到referer url
希望这能提供更多信息