Sure,

//filter:
$this->context->getRequest()->setAttribute( 'foo', 'bar' );

//action:
$request->hasAttribute('foo');
$request->getAttribute('foo');

Do not mix up request attributes with normal request parameters!

Cheers,
Frank


Am 06.05.2009 um 09:00 schrieb Jan De Coster:

> Hi,
>
> Is there anyway i can set a variable from within a filter and access  
> this from any template/action from my app ?
>
> Kr,
> Jan De Coster
>
> >


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