hi stephen,
you can use $this->getUser->setAttribute('test', '','namespace'); in
your action
and use $sf_user->getAttribute('test', '', 'namespace'); in your
layout.php
perhaps there are other ways to this.

On 5月21日, 上午9时34分, 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?
--~--~---------~--~----~------------~-------~--~----~
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