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``
218
218
object for you::
219
219
220
220
// 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 ));
222
222
223
223
Templates can also live in deeper sub-directories. Just try to avoid
224
224
creating unnecessarily deep structures::
225
225
226
226
// renders app/Resources/views/lottery/lucky/number.html.twig
227
227
return $this->render('lottery/lucky/number.html.twig', array(
228
- 'name ' => $name ,
228
+ 'number ' => $number ,
229
229
));
230
230
231
231
The Symfony templating system and Twig are explained more in the
You can’t perform that action at this time.
0 commit comments