- Code: Select all
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
But i need to redirect to another action? There is no way to made only the action and refresh the page which come from?
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
// From norenderAction redirect to Index/index.phtml
public function norenderAction() {
$this->_redirect('/');
}
// From norenderAction redirect to Index/hello.phtml
public function norenderAction() {
$this->_redirect('Index/hello'); // no suffix '.phtml'
}
// From Index/index.phtml redirect to Index/hello.phtml
public function indexAction() {
$this->_forward('hello'); // no suffix '.phtml'
} Users browsing this forum: No registered users and 1 guest