Hi,
Actually, it’s a good habit to use the referer function’s parameters.
The code would thus be something like:
$this->redirect($this->referer(array(‘action’=>’index’), true));
Navigate to a page that has a form. $this->referer points to previous page
However fill in and submit the form. $this->referer points to the current page
Any ideas on how to preserve the first $this->referer so that you are not redirected to the same page you are currently on?
May 15, 2009 at 2:26 pm
Hi,
Actually, it’s a good habit to use the referer function’s parameters.
The code would thus be something like:
$this->redirect($this->referer(array(‘action’=>’index’), true));
Pierre 😉
May 16, 2009 at 6:29 am
thanks for your input
May 24, 2012 at 9:42 am
Navigate to a page that has a form. $this->referer points to previous page
However fill in and submit the form. $this->referer points to the current page
Any ideas on how to preserve the first $this->referer so that you are not redirected to the same page you are currently on?