in your controller you can use.... $this->Auth->user('id') or $this->session->read('Auth.User.id')
or in your view $session->read('Auth.User.id') --- Brett Wilton http://wiltonsoftware.com On Sat, Sep 20, 2008 at 3:51 AM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi, sorry..found the solution to allow pages without a controller - > stick it in the app_controller.. which only leaves me know with the > question.. > > SECONDLY: I am trying to do a on sessions, if I do pr($_SESSION); I > get all the sessions - see below..I want the user_id, I have tried > print_r($_SESSION['Config']['User']['id']) which works but when I put > in the > > > <?php echo $html->link("My classified adds ", array("controller" => > "items", "action" => > "view", ".$_SESSION['Config']['User']['id']).")); ?> > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---