Thanks guys, I fixed it in the end - the problem lied with my registration module - I wasnt saving the right user_id - thus retrieving the profile via getProfile() retrieved nothing (although I'm not sure why this didnt create a bigger error).
In the sfGuardUser admin module - to create a partial $sf_guard_user is used (I had to look in my cache/backend/modules/autosfGua.... etc to find out what variable it was using). Hope that might help if you ever need to do this in future! Cheers guys Frank Stelzer wrote: > try > > $sf_user->getGuardUser()->getProfile()->getId(); > > $sf_guard_user is not available in templates normally. > > > >> Hi everyone, >> >> I'm having trouble creating a partial link to the edit user profile in >> sfGuardUser >> >> I've created _userprofile.php in the templates/ directory, but when I >> try to; >> >> <?php echo link_to('edit >> profile..','userprofile/edit?id='.$sf_guard_user->getProfile()->getId())?> >> >> it fails to return the ID, however it does no product an error... Is >> there something obvious I'm doing wrong here? >> >> Cheers >> -- >> >> Thanks, >> >> Jon Busby >> JBtwo Web Development >> >> >> >> > > > > > > -- Thanks, Jon Busby JBtwo Web Development Mobile :: +44 (0)7834 22 8887 Office :: +44 (0)208 0900 351 http://www.jbtwo.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---