Hello,
Tell me please about right redirects.
One is
return $this->redirect(array(
‘controller’ => ‘Pages’, ‘action’ => ‘finished’)
);
Second is :
$this->redirect(array(
‘controller’ => ‘Pages’, ‘action’ => ‘finished’)
);
Thank you.
Hello,
Tell me please about right redirects.
One is
return $this->redirect(array(
‘controller’ => ‘Pages’, ‘action’ => ‘finished’)
);
Second is :
$this->redirect(array(
‘controller’ => ‘Pages’, ‘action’ => ‘finished’)
);
Thank you.
What do you mean by being “right” ?
Both will redirect you.
If you want to do modify the response later than use return
.
I tried to google “Cakephp redirect does not work” and got solution:
return $this->redirect(array(
‘controller’ => ‘Pages’, ‘action’ => ‘finished’)
);
But I knew , works both and I started to doubt.
Thank you.
Can you try
return $this->redirect(array(
‘controller’ => ‘pages’, ‘action’ => ‘finished’)
);
mzm> It redirects. I know.