1
Sirs,
In the use of $this->_forward()
in the Zend Framework 1 we give a redirect to the controller
and action
we want. In my case this is not working well in the following situation.
I made an appointment, I want that after deletar
a record it disappear and already redirect to the same screen where was the query.
Another thing is that the forward
causes the url
don’t change.... it redirects, but the url
is with record parameter ... /apagar?idRegistro=56
.
Action:
public function apagarAction()
{
$this->_helper->viewRenderer->setNoRender(true);
$idTel = $this->_getParam('idRegistro');
$modTel = new Sca_Model_Telefone('sca');
$idRegistro = $modTel->getAdapter()->quoteInto('idTelefone = ?', $idTel);
$modTel->delete($idRegistro);
$this->_forward('consultar', 'index', 'sistel');
$this->view->deletado = "Registro deletado com sucesso.";
}