i think it has to do with assignment in pre execute. I beleive i had
trouble with this before as well. For some reason i dont think
assignment for the template works in preExecute. I think it only works
for assignment within the actions, not within the template. I think
this has to do with how preExecute is called and use of __set to
magically assing the template variable form within an execution
method. Of course i could be completely wrong.

On Oct 9, 3:35 pm, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote:
> Hi every:
> I have this code in the preExecute action:
>
> PHP Code:
> public function preExecute()
> {
>         $this->moduleName = $this->getModuleName();
>
> }
>
> Then in my layout.php file I have this:
>
> echo $moduleName;
>
> If I try the URLhttp://gestion.local/backend_dev.php/geslicsoftthe 
> $moduleName variable need to take "geslicsoft" as value ¿right? Well this var 
> cannot take any value and Symgony show me this error:
>
> Notice: Undefined variable: moduleName in 
> D:\Development\WWW\gestion.local\apps\backend\templates\layout.php on line 39
>
> What I'm doing wrong?
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo de Soporte al Desarrollo - Dirección Técnica IP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
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