Yeap that will work too, but is there no way to read the session value
or the value that is set by the controller that redirects the view ?
if the view itself doesnt have any controller(like home/index which is
controlled by pages_controller). if i needed a more page specific code
then i cannot place the code in the pages_controller anymore.

I realise the set method in the controller will only be available to
its own view and not when its redirected. is that true or i have made
a mistake somewhere ?

On May 21, 6:50 am, V <[EMAIL PROTECTED]> wrote:
> I think that you can always read the session value in the beforeFilter
> method for example. Which makes some sense if you would like to check
> if he is logged in.
>
> V
>
> On May 20, 5:04 pm, yangz <[EMAIL PROTECTED]> wrote:
>
> > I am doing a login page and it will redirect the user to the index
> > page if its successful.
>
> > However, if i set a variable to indicate that the user is logged by
> > using $this->set, i am not able to pick up the value from the view if
> > i used redirect.
>
> > i can use the Session, however i am using the pages controller so if i
> > redirect it to '/' , it will render the home.ctp view in the pages
> > folder. so how do i read the session value ?


--~--~---------~--~----~------------~-------~--~----~
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