From dc38c7159f4696c4905c98128e5477245f0034e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Apr 2014 12:18:22 +0300 Subject: [PATCH 1/2] Update extending-the-model-blog-comments.rst fixing similar problem reported here: ``` Unexpected token "name" of value "with" ("end of statement block" expected) in BloggerBlogBundle:Blog:show.html.twig at line 25 ``` https://github.com/sonata-project/SonataDoctrineORMAdminBundle/issues/166 it being related to this change: https://github.com/doctrine/DoctrineBundle/issues/141 --- docs/extending-the-model-blog-comments.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extending-the-model-blog-comments.rst b/docs/extending-the-model-blog-comments.rst index 8ae49ee..58ba86c 100644 --- a/docs/extending-the-model-blog-comments.rst +++ b/docs/extending-the-model-blog-comments.rst @@ -1250,7 +1250,7 @@ with the following. {# .. #}

Add Comment

- {% render 'BloggerBlogBundle:Comment:new' with { 'blog_id': blog.id } %} + {{ render(controller( 'BloggerBlogBundle:Comment:new', { 'blog_id': blog.id } )) }} {% endblock %} From cc00aefcb2993be01026b9aa052920a1a064b071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 16 Apr 2014 13:22:16 +0300 Subject: [PATCH 2/2] one more fix --- docs/customising-the-view-more-with-twig.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/customising-the-view-more-with-twig.rst b/docs/customising-the-view-more-with-twig.rst index 1916c2a..c04f118 100644 --- a/docs/customising-the-view-more-with-twig.rst +++ b/docs/customising-the-view-more-with-twig.rst @@ -313,7 +313,7 @@ the ``sidebar`` action of the ``Page`` controller. {# .. #} {% block sidebar %} - {% render "BloggerBlogBundle:Page:sidebar" %} + {{ render(controller( "BloggerBlogBundle:Page:sidebar")) }} {% endblock %} Finally let's add the CSS for the tag cloud. Add a new stylesheet located at