[symfony-users] Re: access myUser.class.php from a template/layout

2007-08-14 Thread scube

that works perfectly, thanks a lot!


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



[symfony-users] Re: access myUser.class.php from a template/layout

2007-08-13 Thread Sebastian Schulze

In your case: $sf_user->getTestData();

On 13 Aug., 21:22, scube <[EMAIL PROTECTED]> wrote:
> Hi,
>
> my goal is to access the content of myUser.class.php (located in the
> lib dir) from a template or layout. But how can I do that?
>
> My myUser.class.php file:
> class myUser extends sfBasicSecurityUser
> {
>
> public function getTestData()
> {
> return "test-text";
> }
>
> }


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



[symfony-users] Re: access myUser.class.php from a template/layout

2007-08-13 Thread Carl Vondrick

On Monday, August 13, 2007, scube wrote:
> my goal is to access the content of myUser.class.php (located in the
> lib dir) from a template or layout. But how can I do that?

Use the $sf_user variable from the templates.

isAuthenticated ? 'You are logged in' : 'You are not 
logged in' ?>

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