我想从我的自定义模块的 Controller 操作之一调用 cms/index/noRoute
操作,我该怎么做?
我试过了,
$this->_redirectUrl('cms/index/noRoute')
和
$this->_forward('cms/index/noRoute')
重定向 URL 的变体也很少,例如“*/cms/index/noRoute”等,但没有一个有效。我应该怎么做?
最佳答案
使用下面的代码:
$this->_redirect('defaultNoRoute');
return;
它对我有用。
关于magento - 如何在 Magento 中从我的 Controller 操作重定向或调用不同的 Controller 操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16475872/