Skip to content

Update controller syntax for bundle-less applications #8555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions templating/embedding_controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The ``recent_list`` template is perfectly straightforward:
you'll learn how to do this correctly.

To include the controller, you'll need to refer to it using the standard
string syntax for controllers (i.e. **bundle**:**controller**:**action**):
string syntax for controllers (i.e. **controllerPath**::**action**):

.. configuration-block::

Expand All @@ -79,7 +79,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
{# ... #}
<div id="sidebar">
{{ render(controller(
'AppBundle:Article:recentArticles',
'App\\Controller\\ArticleController::recentArticles',
{ 'max': 3 }
)) }}
</div>
Expand All @@ -92,7 +92,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
<div id="sidebar">
<?php echo $view['actions']->render(
new \Symfony\Component\HttpKernel\Controller\ControllerReference(
'AppBundle:Article:recentArticles',
'App\\Controller\\ArticleController::recentArticles',
array('max' => 3)
)
) ?>
Expand Down