The rough equivalent would be to use the following in your controller action:

$this->redirect($this->referer());

There are some useful params to referer which are worth checking out.

http://api.cakephp.org/class_controller.html#87f90447a9235c60ea65f9ff4cad2de8

j.

On 6/12/06, rinda <[EMAIL PROTECTED]> wrote:
>
> Hi, how do you redirect to previous page. I have function that change
> language of the web. This function does not render the view. All the
> controller's functions have this access to this function. I mean, you
> can change the language in any page of the web. What I want is.....
> after change the language of the web, this function redirect to page
> that called this function. In Ruby on Rails, I can use redirect_to
> :back. thx.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to