On Jun 13, 11:13 am, "Mohammad Ali Safari" <[EMAIL PROTECTED]>
wrote:

> I am defining a variable in my action class like this:
>
> class myActions extends sfActions
> {
> public  $var
> ...
>
> I assume that I have access to variable $var in any of my templates, but it
> is not the case. The only thing I could do is to have $this->foo =
> $this->var in my corresponding action function and access $foo in my
> template.
>
> Am I wrong that templates have access to all public variables defined in the
> action class?

Yes.

:-)

If you want $foo in your template you need to set $this->foo in your
action.


--


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