File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,15 @@ pattern that points to a specific PHP class and method:
80
80
.. code-block :: php
81
81
82
82
// src/Acme/BlogBundle/Controller/BlogController.php
83
-
84
83
namespace Acme\BlogBundle\Controller;
84
+
85
85
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
86
86
87
87
class BlogController extends Controller
88
88
{
89
89
public function showAction($slug)
90
90
{
91
- $blog = // use the $slug variable to query the database
91
+ $blog = ... use the $slug variable to query the database;
92
92
93
93
return $this->render('AcmeBlogBundle:Blog:show.html.twig', array(
94
94
'blog' => $blog,
@@ -1145,7 +1145,7 @@ a template helper function:
1145
1145
1146
1146
.. code-block :: html+jinja
1147
1147
1148
- <a href="{{ path('blog_show', { 'slug': 'my-blog-post' }) }}">
1148
+ <a href="{{ path('blog_show', {'slug': 'my-blog-post'}) }}">
1149
1149
Read this blog post.
1150
1150
</a>
1151
1151
@@ -1161,7 +1161,7 @@ Absolute URLs can also be generated.
1161
1161
1162
1162
.. code-block :: html+jinja
1163
1163
1164
- <a href="{{ url('blog_show', { 'slug': 'my-blog-post' }) }}">
1164
+ <a href="{{ url('blog_show', {'slug': 'my-blog-post'}) }}">
1165
1165
Read this blog post.
1166
1166
</a>
1167
1167
You can’t perform that action at this time.
0 commit comments