In my user/templates/viewSuccess.php I have a block of HTML that I don't
want to show if I'm looking at my own profile (Add friend / Email user).

How can I tell if the user I'm looking at is the one I'm logged in as?

In normal PHP, I'd have saved my user's database ID in a $_SESSION upon
login and compare to the ID of the record I just pulled up. Simple.

I made the mistake of doing this (so I could look for some similarities in
variables/methods):

var_dump($sf_user);
var_dump($user);

And was horrified to see that $sf_user consumed literally 60,136 LINES! Are
you f'n kidding me!?!!




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