I am trying to make my auth component redirect to the login screen
with params if they are provided in the link to my site. In this case
I need to make an invitation email to join a website which has a
invivation code, if the user is not logged in, I want them to be
redirected to the login screen but with the invitation:402094309 code
in the url. I tried using the code below in my appController
beforeFilter but I quickly found out that params[named] is empty. Any
suggestions on how I should go about this? Thank you as always.
$loginAction = "/login";
if(!empty($this->params['named']['invitation'])) {
$loginAction .= "invitation:" . this->params['named']['invitation'];
}
$this->Auth->loginAction = $loginAction;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---