0

i want to redirect the action "new" to action "edit" passing the id generated. I take the url very well but the page don't go to redirection, and stay on same page.

This is my code:

if ($form->isValid())
{
    $form->save();
    $id = $form->getObject()->getId();

    $var = $this->redirect('/admin/noticiascadastros/editar/'.$id);
    return $var;
}

This is my http headers. enter image description here

0 Answers0