Hello,

Currently I'm using Cake 1.2 and I have a small problem. Basically I
want to redirect the user to his current page after he logged in.

Here's my attempt so far:

First, when the user click the Login link, I write $this->params['url']
['url'] (the current URL, I suppose) to the session and use Ajax
helper to construct the login form.

After he has logged in successfully, I use $this->requestAction to
request the previous URL, then use $this->render to render the page
using Ajax layout.

It doesn't work, however.

I did a small test manually:

$this->setAction('/users');
$this->render('index', 'ajax');

But when I attempted to use $this->requestAction, it doesn't work.

Please, give me some advices. Thanks in advanced.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to