Skillbooker
Login Register

Cakephp


How to go back to the previous page in Cakephp

In your controller use this to go back to the previous page:

$this->redirect($this->referer());
or use the referer's parameters like this:
$this->redirect($this->referer(array(‘action’=>’index’), true));



Posted on: 2016-07-11 Please login/register to leave comments