In your action:
public function executeMyAction()
{
...
$this->myVar = 'some value';
}
When you call your component:
<?php echo include_component('moduleName', 'componentName', array
( 'myvar' => $myVar ) ); ?>
Charley
On Dec 3, 2007, at 10:10 AM, eax wrote:
>
> Hi,
>
> I would like to initialize a variable in my controller, and use it in
> components (I don't speak of sessions variables).
>
> Thanks
>
> Sylvain
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---