Re: redirect to original page
Are you using Auth? Try: $this->Auth->loginRedirect = Controller::referer('/see/documentation', true); http://api.cakephp.org/1.2/class_controller.html#e87c8e6edf53aadc511e3d050d71a494 On Mar 3, 3:44 am, bob <[EMAIL PROTECTED]> wrote: > If I click on a link in my view, it redirects to the login page (i check if > logged in via beforeFilter() in the controller). After i login, i want to > redirect to the page that I clicked on, not another page. how do i do this > in cakephp 1.2? thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: redirect to original page
REFERRER? On Mar 3, 7:41 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > AuthComponent in 1.2 does it storing the original location in the > session. You can use the AuthComponent or implement something like > that on your own. > > On Mon, Mar 3, 2008 at 6:53 AM, bob <[EMAIL PROTECTED]> wrote: > > Should i use a session to save the original link? Or is there another better > > way to do this? > > > On Mon, Mar 3, 2008 at 12:44 AM, bob <[EMAIL PROTECTED]> wrote: > > > > If I click on a link in my view, it redirects to the login page (i check > > if logged in via beforeFilter() in the controller). After i login, i want to > > redirect to the page that I clicked on, not another page. how do i do this > > in cakephp 1.2? thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: redirect to original page
AuthComponent in 1.2 does it storing the original location in the session. You can use the AuthComponent or implement something like that on your own. On Mon, Mar 3, 2008 at 6:53 AM, bob <[EMAIL PROTECTED]> wrote: > Should i use a session to save the original link? Or is there another better > way to do this? > > > > On Mon, Mar 3, 2008 at 12:44 AM, bob <[EMAIL PROTECTED]> wrote: > > > If I click on a link in my view, it redirects to the login page (i check > if logged in via beforeFilter() in the controller). After i login, i want to > redirect to the page that I clicked on, not another page. how do i do this > in cakephp 1.2? thanks > > > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: redirect to original page
Should i use a session to save the original link? Or is there another better way to do this? On Mon, Mar 3, 2008 at 12:44 AM, bob <[EMAIL PROTECTED]> wrote: > If I click on a link in my view, it redirects to the login page (i check > if logged in via beforeFilter() in the controller). After i login, i want to > redirect to the page that I clicked on, not another page. how do i do this > in cakephp 1.2? thanks > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
redirect to original page
If I click on a link in my view, it redirects to the login page (i check if logged in via beforeFilter() in the controller). After i login, i want to redirect to the page that I clicked on, not another page. how do i do this in cakephp 1.2? thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---