I've got a partial that I'm using in a Symfony 1.4 admin generated module but I have some logic that I would prefer to keep in my action. Is there anyway to access action vars in the partial? In a regular template (ie: non admin generated), I could simply declare my var in my action as $this->myVar
and then access it from within my template as $myVar
, but is there any way to do this in an admin partial?
I've tried declaring it in my preExecute()
method but the var is undefined in my partial template.
Am I doing something wrong, or is my only choice to use a component instead of a partial?