我正在使用magento 1.7并且我无法使用*/*/
进行重定向任何人都可以解释它
$this->_redirect('*/*/');
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
答案 0 :(得分:1)
magento constists中的三个部分的链接:“package”,controller and action,例如: customer/account/login
*
表示“在此上下文中”。如果您位于Customer-AccountController和indexAction
方法中,则可以使用*/*/edit
重定向到customer/account/edit
此编辑在前端上下文中没有意义,但是当您在后端时,通常会有gridAction
,当您单击某行时,您将被重定向到{{1}和编辑条目的表单。