Thanks Brian,

I am using the AUTH component. I want to access Auth.user() in the
view and I think the only way I can do that is if I can get the
controller in the view so I can say this->controller->Auth->user(). I
guess this is the wrongest way to go right? But I am new and just
floating around trying to find my feet. Please don't be irritated with
my blunders, help me.

Also, when I use the auth component, I'd like to know the following:
1. How and When do I know that the Auth component has successfully (or
otherwise) authenticated the user? Is there something like if ($this-
>Auth->authSuccess){}?
2. How can I perform further actions after a successful auth like,
save the login time, check for file permissions and load them, notify
other people that someone just logged in?

I'm grateful for your help. God bless you!

On Oct 13, 6:11 pm, brian <bally.z...@gmail.com> wrote:
> On Tue, Oct 13, 2009 at 12:37 PM, Prof. No Time
>
> <libertylivingst...@gmail.com> wrote:
>
> > Hello People, thanks so much for your attempts at my bake problem.
> > Obviously no one was close at all to the answer but I figured out
> > myself how to bake and I have baked successfully quite a number of
> > times now. I am new to this cake thing and I hope you guys can help me
> > sail through. I love Qcubed because they always answer when I cry, I
> > hope cake won't be any different.
>
> > Now to my Question, please, how do I access the CONTROLLER and SESSION
> > in a VIEW? Is it possible? If yes HOW, if no ALTERNATIVE.
>
> In the view, use $session['whatever']. Add debug($session) to see what
> it looks like.
>
> As for accessing the controller, it's not really set up for that and
> you probably don't need to. What are you trying to do?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to