Skip to content

Commit

Permalink
Add doc about setting label to false
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelVella committed Feb 12, 2013
1 parent 67f8a6c commit 8bde174
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Resources/doc/reference/form_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,16 @@ The type has one extra parameter :
'choices' => Delivery::getStatusList(),
'catalogue' => 'SonataOrderBundle'
))
Types options
-------------

General
^^^^^^^

- ``label``: You can set the ``label`` option to ``false`` if you don't want to show it.

.. code-block:: php
<?php
$form->add('status', null, array('label' => false);

0 comments on commit 8bde174

Please sign in to comment.