Skip to content

Commit

Permalink
Ref #3903 - new list normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
ternel committed Dec 21, 2014
1 parent 7054cf4 commit 9ee8a1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
23 changes: 13 additions & 10 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,19 @@ helper functions:

That's it! Just three lines are needed to render the complete form:

* ``form_start(form)`` - Renders the start tag of the form, including the
correct enctype attribute when using file uploads;

* ``form_widget(form)`` - Renders all of the fields, which includes the field
element itself, a label and any validation error messages for the field;

* ``form_end()`` - Renders the end tag of the form and any fields that have not
yet been rendered, in case you rendered each field yourself. This is useful
for rendering hidden fields and taking advantage of the automatic
:ref:`CSRF Protection <forms-csrf>`.
``form_start(form)``
Renders the start tag of the form, including the correct enctype attribute
when using file uploads.

``form_widget(form)``
Renders all of the fields, which includes the field element itself, a label
and any validation error messages for the field.

``form_end()``
Renders the end tag of the form and any fields that have not
yet been rendered, in case you rendered each field yourself. This is useful
for rendering hidden fields and taking advantage of the automatic
:ref:`CSRF Protection <forms-csrf>`.

.. seealso::

Expand Down
6 changes: 3 additions & 3 deletions cookbook/security/custom_authentication_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ requires the following methods:

``create``
Method which adds the listener and authentication provider
to the DI container for the appropriate security context;
to the DI container for the appropriate security context.

``getPosition``
Method which must be of type ``pre_auth``, ``form``, ``http``,
and ``remember_me`` and defines the position at which the provider is called;
and ``remember_me`` and defines the position at which the provider is called.

``getKey``
Method which defines the configuration key used to reference
the provider in the firewall configuration;
the provider in the firewall configuration.

``addConfiguration``
Method which is used to define the configuration
Expand Down

0 comments on commit 9ee8a1f

Please sign in to comment.