File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ The ``recent_list`` template is perfectly straightforward:
67
67
(e.g. ``/article/*slug* ``). This is a bad practice. In the next section,
68
68
you'll learn how to do this correctly.
69
69
70
- To include the controller, you'll need to refer to it using the standard
71
- string syntax for controllers (i.e. **bundle **:**controller **:**action **):
70
+ To include the controller, you'll need to refer to it using the standard string syntax for controllers (i.e. **controllerPath **::**action **).
72
71
73
72
.. configuration-block ::
74
73
@@ -79,7 +78,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
79
78
{# ... #}
80
79
<div id="sidebar">
81
80
{{ render(controller(
82
- 'AppBundle :Article : recentArticles',
81
+ 'App \\ Controller \\ ArticleController: :recentArticles',
83
82
{ 'max': 3 }
84
83
)) }}
85
84
</div>
@@ -92,7 +91,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
92
91
<div id="sidebar">
93
92
<?php echo $view['actions']->render(
94
93
new \S ymfony\C omponent\H ttpKernel\C ontroller\C ontrollerReference(
95
- 'AppBundle :Article : recentArticles',
94
+ 'App \\ Controller \\ ArticleController: :recentArticles',
96
95
array('max' => 3)
97
96
)
98
97
) ?>
You can’t perform that action at this time.
0 commit comments