Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
9cf4b598
Commit
9cf4b598
authored
Aug 23, 2012
by
Benoît Merlet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FormServiceProvider] clarified doc
parent
6d7cf048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
doc/providers/form.rst
doc/providers/form.rst
+28
-20
No files found.
doc/providers/form.rst
View file @
9cf4b598
...
@@ -36,8 +36,20 @@ Registering
...
@@ -36,8 +36,20 @@ Registering
.. note::
.. note::
The Symfony Form Component comes with the "fat" Silex archive but not with
If you don't want to create your own form layout, it's fine: a default one
the regular one. If you are using Composer, add it as a dependency to your
will be used. But you will have to register the
:doc:`translation provider <providers/translation>` as the default form
layout requires it.
If you want to use validation with forms, do not forget to register the
:doc:`Validator provider <providers/validator>`.
.. note::
The Symfony Form Component and all its dependencies (optional or not) comes
with the "fat" Silex archive but not with the regular one.
If you are using Composer, add it as a dependency to your
``composer.json`` file:
``composer.json`` file:
.. code-block:: json
.. code-block:: json
...
@@ -46,29 +58,25 @@ Registering
...
@@ -46,29 +58,25 @@ Registering
"symfony/form": "2.1.*"
"symfony/form": "2.1.*"
}
}
If you are going to use the validation extension with forms, you must also
If you are going to use the validation extension with forms, you must also
register the ``symfony/config`` and ```symfony/translation`` components:
add a dependency to the ``symfony/config`` and ```symfony/translation``
components:
.. code-block:: json
"require": {
"symfony/config": "2.1.*",
"symfony/translation": "2.1.*"
}
The Symfony Form Component relies on the PHP intl extension. If you don't have
.. code-block:: json
it, you can install the Symfony Locale Component as a replacement:
.. code-block:: json
"require": {
"symfony/config": "2.1.*",
"symfony/translation": "2.1.*"
}
"require": {
The Symfony Form Component relies on the PHP intl extension. If you don't have
"symfony/locale": "2.1.*"
it, you can install the Symfony Locale Component as a replacement:
}
.. note::
.. code-block:: json
If you want to benefit from the internationalization of your form, you
"require": {
must install the PHP intl extension.
"symfony/locale": "2.1.*"
}
Usage
Usage
-----
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment