diff --git a/book/controller.rst b/book/controller.rst
index cc4c1943908..e8405f7ab4b 100644
--- a/book/controller.rst
+++ b/book/controller.rst
@@ -102,7 +102,7 @@ a controller object. Controllers are also called *actions*.
{
public function indexAction($name)
{
- return new Response('
Hello '.$name.'!');
+ return new Response('Hello '.$name.'!');
}
}
@@ -687,7 +687,7 @@ the ``notice`` message:
{% endif %}
- .. code-block:: php
+ .. code-block:: html+php
hasFlash('notice')): ?>
diff --git a/book/doctrine.rst b/book/doctrine.rst
index 534baad9282..d0ffa520759 100644
--- a/book/doctrine.rst
+++ b/book/doctrine.rst
@@ -50,11 +50,11 @@ information. By convention, this information is usually configured in an
; app/config/parameters.ini
[parameters]
- database_driver = pdo_mysql
- database_host = localhost
- database_name = test_project
- database_user = root
- database_password = password
+ database_driver = pdo_mysql
+ database_host = localhost
+ database_name = test_project
+ database_user = root
+ database_password = password
.. note::
diff --git a/book/http_cache.rst b/book/http_cache.rst
index ee863bc16cf..4ebf7f7b020 100644
--- a/book/http_cache.rst
+++ b/book/http_cache.rst
@@ -851,7 +851,7 @@ First, to use ESI, be sure to enable it in your application configuration:
// app/config/config.php
$container->loadFromExtension('framework', array(
- ...,
+ // ...
'esi' => array('enabled' => true),
));
@@ -884,7 +884,7 @@ matter), Symfony2 uses the standard ``render`` helper to configure ESI tags:
{% render url('latest_news', { 'max': 5 }) with {}, {'standalone': true} %}
- .. code-block:: php
+ .. code-block:: html+php
render(
$view['router']->generate('latest_news', array('max' => 5), true),
diff --git a/book/page_creation.rst b/book/page_creation.rst
index ac68949432d..c094643f92d 100644
--- a/book/page_creation.rst
+++ b/book/page_creation.rst
@@ -344,7 +344,7 @@ controller, and ``index.html.twig`` the template:
Hello {{ name }}!
{% endblock %}
- .. code-block:: php
+ .. code-block:: html+php
extend('::base.html.php') ?>
@@ -385,7 +385,7 @@ and in the ``app`` directory: