Hi Stephen,

u can use $request->setAttribute('url','bla'); in your actions class
and use it in layout by using
$sf_request->getAttribute('url');

On Thu, May 21, 2009 at 7:04 AM, Stephen <stephen.j.t...@gmail.com> wrote:

>
> I define a variable in action: $this->url='bla';
> I want to use this variable in the layout.php, but I got this message
> "Notice: Undefined variable: url in /www/apps/frontend/templates/
> layout.php on line 28"
>
> Could any body tell me what's the problem? What should I do if I want
> to set a variable on "layouot.php" from the control layer?
> >
>


-- 
Regards,
Dheeraj

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to