Bonjour,
En lisant la doc Symfony, j'avais compris que le passage d'une
variable depuis l'action vers le template était très simple.
Dans l'action, on écrit : $this-ma_variable = azerty ;
Dans le template, on peut alors faire : echo $ma_variable ;
Pourtant sur un module produit développée avec
Salut,
il faut passer ta variable à ton partial depuis le template.
Cf
http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_partials
http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_partials
Listing