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
>
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to