sfContext::getInstance()->getUser() might work too On Tue, Jun 29, 2010 at 4:26 PM, Ricardo Jose Guzman Milanes < guzman.ricardoj...@gmail.com> wrote:
> Hello Rodrigo > > Two weeks ago I was trying to find a way to display info only related to > the logged user. > > I used this in my action.php > > public function executeIndex(sfWebRequest $request) >> { >> $id=$this->getUser()->getGuardUser()->getId(); >> $this->personass = Doctrine::getTable('personas') >> ->createQuery('a') >> ->WHERE('a.usuarioid = ?', $id) >> ->execute(); >> } >> >> -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en