Just to your specific point, $sf_user is accessible from every template or partial anyways.. no need to pass it along.
Daniel On Feb 8, 1:09 pm, Darren884 <darren...@gmail.com> wrote: > I solved it guys but the above would not work so I had to do a > different way. I found out about hasCredential and used that. The > above methods don't work too nicely on object methods. > > On Feb 8, 12:11 pm, Norbert <haigermo...@web.de> wrote: > > > Am 08.02.10 20:41, schrieb Darren884:> In my template I am trying to > > do<?php include_partial('global/ > > > navigator', array('User' => $sf_user)); ?> > > > > But when I run $User->getAttributes() in my partial it is cleaning the > > > code which makes it so it does not work. How can I get around this?? > > > > Thanks, > > > Darren > > > try this in your template: > > > look at :http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer > > > echo $sf_data->getRaw('test'); -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.