Browse Source

Add doc about setting label to false

Emmanuel Vella 12 years ago
parent
commit
8bde174b7b
1 changed files with 13 additions and 0 deletions
  1. 13 0
      Resources/doc/reference/form_types.rst

+ 13 - 0
Resources/doc/reference/form_types.rst

@@ -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);