`` element.
+* `bootstrap_3_layout.html.twig`_, wraps each form field inside a ```` element
+ with the appropriate CSS classes to apply the default `Bootstrap 3 CSS framework`_
+ styles.
+* `bootstrap_3_horizontal_layout.html.twig`_, it's similar to the previous theme,
+ but the CSS classes applied are the ones used to display the forms horizontally
+ (i.e. the label and the widget in the same row).
In the next section you will learn how to customize a theme by overriding
some or all of its fragments.
@@ -1059,3 +1076,7 @@ The array passed as the second argument contains form "variables". For
more details about this concept in Twig, see :ref:`twig-reference-form-variables`.
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
+.. _`form_table_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig
+.. _`bootstrap_3_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig
+.. _`bootstrap_3_horizontal_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig
+.. _`Bootstrap 3 CSS framework`: http://getbootstrap.com/
diff --git a/cookbook/routing/slash_in_parameter.rst b/cookbook/routing/slash_in_parameter.rst
index 64f1a27c08d..db2078a2bc3 100644
--- a/cookbook/routing/slash_in_parameter.rst
+++ b/cookbook/routing/slash_in_parameter.rst
@@ -5,12 +5,12 @@ How to Allow a "/" Character in a Route Parameter
=================================================
Sometimes, you need to compose URLs with parameters that can contain a slash
-``/``. For example, take the classic ``/hello/{name}`` route. By default,
+``/``. For example, take the classic ``/hello/{username}`` route. By default,
``/hello/Fabien`` will match this route but not ``/hello/Fabien/Kris``. This
is because Symfony uses this character as separator between route parts.
This guide covers how you can modify a route so that ``/hello/Fabien/Kris``
-matches the ``/hello/{name}`` route, where ``{name}`` equals ``Fabien/Kris``.
+matches the ``/hello/{username}`` route, where ``{username}`` equals ``Fabien/Kris``.
Configure the Route
-------------------
@@ -27,10 +27,10 @@ a more permissive regex path.
.. code-block:: yaml
_hello:
- path: /hello/{name}
+ path: /hello/{username}
defaults: { _controller: AcmeDemoBundle:Demo:hello }
requirements:
- name: .+
+ username: .+
.. code-block:: xml
@@ -40,9 +40,9 @@ a more permissive regex path.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
-
+
AcmeDemoBundle:Demo:hello
- .+
+ .+
@@ -52,10 +52,10 @@ a more permissive regex path.
use Symfony\Component\Routing\Route;
$collection = new RouteCollection();
- $collection->add('_hello', new Route('/hello/{name}', array(
+ $collection->add('_hello', new Route('/hello/{username}', array(
'_controller' => 'AcmeDemoBundle:Demo:hello',
), array(
- 'name' => '.+',
+ 'username' => '.+',
)));
return $collection;
@@ -75,4 +75,4 @@ a more permissive regex path.
}
}
-That's it! Now, the ``{name}`` parameter can contain the ``/`` character.
+That's it! Now, the ``{username}`` parameter can contain the ``/`` character.
diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst
index 144d7809f48..398138398ce 100644
--- a/cookbook/security/entity_provider.rst
+++ b/cookbook/security/entity_provider.rst
@@ -877,7 +877,3 @@ then instead of these properties being checked, your ``isEqualTo`` method
is simply called, and you can check whatever properties you want. Unless
you understand this, you probably *won't* need to implement this interface
or worry about it.
-
-.. versionadded:: 2.1
- In Symfony 2.1, the ``equals`` method was removed from ``UserInterface``
- and the ``EquatableInterface`` was introduced in its place.
diff --git a/cookbook/security/target_path.rst b/cookbook/security/target_path.rst
index 6f7a0536da1..c6c97de7b21 100644
--- a/cookbook/security/target_path.rst
+++ b/cookbook/security/target_path.rst
@@ -67,4 +67,4 @@ Next, create your own ``ExceptionListener``::
}
}
-Add as much or few logic here as required for your scenario!
+Add as much or as little logic here as required for your scenario!
diff --git a/reference/configuration/assetic.rst b/reference/configuration/assetic.rst
index f85346394a8..8126d03fd49 100644
--- a/reference/configuration/assetic.rst
+++ b/reference/configuration/assetic.rst
@@ -4,8 +4,8 @@
AsseticBundle Configuration ("assetic")
=======================================
-Full default Configuration
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+Full Default Configuration
+--------------------------
.. configuration-block::
diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst
index 6f8fbf73562..1d0b00cde72 100644
--- a/reference/configuration/doctrine.rst
+++ b/reference/configuration/doctrine.rst
@@ -5,7 +5,7 @@
DoctrineBundle Configuration ("doctrine")
=========================================
-Full default configuration
+Full Default Configuration
--------------------------
.. configuration-block::
@@ -180,8 +180,10 @@ Full default configuration
+ xsi:schemaLocation="http://symfony.com/schema/dic/services
+ http://symfony.com/schema/dic/services/services-1.0.xsd
+ http://symfony.com/schema/dic/doctrine
+ http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
@@ -209,16 +211,44 @@ Full default configuration
Acme\HelloBundle\MyCustomType
-
-
-
+
+
+
+
+
- Acme\HelloBundle\DQL\StringFunction
- Acme\HelloBundle\DQL\NumericFunction
- Acme\HelloBundle\DQL\DatetimeFunction
+
+ Acme\HelloBundle\DQL\StringFunction
+
+
+
+ Acme\HelloBundle\DQL\NumericFunction
+
+
+
+ Acme\HelloBundle\DQL\DatetimeFunction
+
+
+ xsi:schemaLocation="http://symfony.com/schema/dic/services
+ http://symfony.com/schema/dic/services/services-1.0.xsd
+ http://symfony.com/schema/dic/doctrine
+ http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"
+ >
+ xsi:schemaLocation="http://symfony.com/schema/dic/services
+ http://symfony.com/schema/dic/services/services-1.0.xsd
+ http://symfony.com/schema/dic/monolog
+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
+ >
`".
* ``check_path`` (type: ``string``, default: ``/login_check``)
@@ -280,8 +280,8 @@ The Login Form and Process
a separate firewall just for ``check_path`` URL).
* ``use_forward`` (type: ``Boolean``, default: ``false``)
- If you'd like the user to be forwarded to the login form instead of being
- redirected, set this option to ``true``.
+ If you'd like the user to be forwarded to the login form instead of
+ being redirected, set this option to ``true``.
* ``username_parameter`` (type: ``string``, default: ``_username``)
This is the field name that you should give to the username field of
diff --git a/reference/forms/types/options/with_minutes.rst.inc b/reference/forms/types/options/with_minutes.rst.inc
index 48e6cdddcaf..60ad9b94515 100644
--- a/reference/forms/types/options/with_minutes.rst.inc
+++ b/reference/forms/types/options/with_minutes.rst.inc
@@ -1,9 +1,6 @@
with_minutes
~~~~~~~~~~~~
-.. versionadded:: 2.2
- The ``with_minutes`` option was introduced in Symfony 2.2.
-
**type**: ``Boolean`` **default**: ``true``
Whether or not to include minutes in the input. This will result in an additional
diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst
index 8a7f5ad33e3..80078b2aa15 100644
--- a/reference/twig_reference.rst
+++ b/reference/twig_reference.rst
@@ -7,15 +7,19 @@ Symfony Twig Extensions
=======================
Twig is the default template engine for Symfony. By itself, it already contains
-a lot of built-in functions, filters, tags and tests (`http://twig.sensiolabs.org/documentation`_
-then scroll to the bottom).
+a lot of built-in functions, filters, tags and tests (learn more about them
+from the the `Twig Reference`_).
-Symfony adds more custom extension on top of Twig to integrate some components
-into the Twig templates. Below is information about all the custom functions,
-filters, tags and tests that are added when using the Symfony Core Framework.
+Symfony adds more custom extensions on top of Twig to integrate some components
+into the Twig templates. You can find more information about the custom
+:ref:`functions `, :ref:`filters `,
+:ref:`tags ` and :ref:`tests `
+that are added when using the Symfony Core Framework.
There may also be tags in bundles you use that aren't listed here.
+.. _reference-twig-functions:
+
Functions
---------
@@ -24,10 +28,6 @@ Functions
render
~~~~~~
-.. versionadded:: 2.2
- The ``render()`` function was introduced in Symfony 2.2. Prior, the
- ``{% render %}`` tag was used and had a different signature.
-
.. code-block:: jinja
{{ render(uri, options) }}
@@ -40,7 +40,7 @@ render
Renders the fragment for the given controller (using the `controller`_ function)
or URI. For more information, see :ref:`templating-embedding-controller`.
-The render strategy can be specified in the ``strategy`` key of the options.
+The render strategy can be specified in the ``strategy`` key of the options.
.. tip::
@@ -65,7 +65,7 @@ Generates an ESI tag when possible or falls back to the behaviour of
.. tip::
The URI can be generated by other functions, like `path`_ and `url`_.
-
+
.. tip::
The ``render_esi()`` function is an example of the shortcut functions
@@ -76,9 +76,6 @@ Generates an ESI tag when possible or falls back to the behaviour of
controller
~~~~~~~~~~
-.. versionadded:: 2.2
- The ``controller()`` function was introduced in Symfony 2.2.
-
.. code-block:: jinja
{{ controller(controller, attributes, query) }}
@@ -367,6 +364,8 @@ expression
Creates an :class:`Symfony\\Component\\ExpressionLanguage\\Expression` in
Twig. See ":ref:`Template Expressions `".
+.. _reference-twig-filters:
+
Filters
-------
@@ -564,6 +563,8 @@ file_link
Generates a link to the provided file (and optionally line number) using a
preconfigured scheme.
+.. _reference-twig-tags:
+
Tags
----
@@ -643,6 +644,8 @@ stopwatch
This will time the run time of the code inside it and put that on the timeline
of the WebProfilerBundle.
+.. _reference-twig-tests:
+
Tests
-----
@@ -692,5 +695,5 @@ Those bundles can have other Twig extensions:
``{% image %}`` tags. You can read more about them in
:doc:`the Assetic Documentation `.
+.. _`Twig Reference`: http://twig.sensiolabs.org/documentation#reference
.. _`the official Twig Extensions documentation`: http://twig.sensiolabs.org/doc/extensions/index.html
-.. _`http://twig.sensiolabs.org/documentation`: http://twig.sensiolabs.org/documentation