File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -218,14 +218,14 @@ method renders a template **and** puts that content into a ``Response``
218218object for you::
219219
220220 // renders app/Resources/views/lucky/number.html.twig
221- return $this->render('lucky/number.html.twig', array('name ' => $name ));
221+ return $this->render('lucky/number.html.twig', array('number ' => $number ));
222222
223223Templates can also live in deeper sub-directories. Just try to avoid
224224creating unnecessarily deep structures::
225225
226226 // renders app/Resources/views/lottery/lucky/number.html.twig
227227 return $this->render('lottery/lucky/number.html.twig', array(
228- 'name ' => $name ,
228+ 'number ' => $number ,
229229 ));
230230
231231The Symfony templating system and Twig are explained more in the
You can’t perform that action at this time.
0 commit comments