I use to do this on my app_controller.php:

public function beforeFilter(){

    if ($this->Auth->user()){
        $this->set("userInfo", $this->Auth->user())
    }
}

Then I can use this var on my views...



On Apr 25, 7:57 pm, Teedaddy <bretteegar...@gmail.com> wrote:
> Could someone be so kind to tell me the easiest way to pass the
> current logged in "Auth" user id in $htmlhelper links?
>
> Thank you so much, just learning all this MVC method and have been
> through Auth tutorials numerous times but I am missing this somehow.
>
> Bret
--~--~---------~--~----~------------~-------~--~----~
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