On 9/13/07, red <[EMAIL PROTECTED]> wrote: > > Some parts of my app need user to be logged in. So in this places I've > put links to 'log in' page. But after user log correctly, the app > always back to the main page (as I set it up). I want to back to > place, where the user was before login action. > I can of course add optional param to the /users/login action called > redirect_after and put in it the action to redirect after log in, but > I've wondered is any better more clean method? Some kind of referer > method for controller?
Within the controller you can access the referrer via $this->referer(); -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---