http://www.symfony-project.org/forum/index.php/m/14653/#msg_14653
:) See you. COil ----- Message d'origine ---- De : Sumedh <[EMAIL PROTECTED]> À : symfony users <symfony-users@googlegroups.com> Envoyé le : Samedi, 6 Septembre 2008, 13h26mn 58s Objet : [symfony-users] A very basic doubt... When I put a member variable in a class above the methods, class listingActions extends sfActions { public $map_latitude = 12.45; ... } I can't access it in the template...(I get "undefined variable" error) But if I just put some value in the execute method, without initializing the variable as done above, I can access it in the template... Why? I suppose this is something very basic in PHP5 that I don't know... :| --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---