浏览代码

Add doc about setting label to false

Emmanuel Vella 12 年之前
父节点
当前提交
8bde174b7b
共有 1 个文件被更改,包括 13 次插入0 次删除
  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);