Skip to content
This repository
Browse code

Update doc block.

  • Loading branch information...
commit e620433680a5133b4f78fe0df0c37f1728da6ade 1 parent e38c149
Mark Story authored August 02, 2012

Showing 1 changed file with 10 additions and 7 deletions. Show diff stats Hide diff stats

  1. 17  lib/Cake/View/Helper/FormHelper.php
17  lib/Cake/View/Helper/FormHelper.php
@@ -1749,6 +1749,9 @@ public function submit($caption = null, $options = array()) {
1749 1749
  * - `escape` - If true contents of options will be HTML entity encoded. Defaults to true.
1750 1750
  * - `value` The selected value of the input.
1751 1751
  * - `class` - When using multiple = checkbox the classname to apply to the divs. Defaults to 'checkbox'.
  1752
+ * - `disabled` - Control the disabled attribute.  When creating a select box, set to true to disable the
  1753
+ *   select box.  When creating checkboxes, `true` will disable all checkboxes. You can also set disabled
  1754
+ *   to a list of values you want to disable when creating checkboxes.
1752 1755
  *
1753 1756
  * ### Using options
1754 1757
  *
@@ -1762,11 +1765,11 @@ public function submit($caption = null, $options = array()) {
1762 1765
  * While a nested options array will create optgroups with options inside them.
1763 1766
  * {{{
1764 1767
  * $options = array(
1765  
- *	1 => 'bill',
1766  
- *	'fred' => array(
1767  
- *		2 => 'fred',
1768  
- *		3 => 'fred jr.'
1769  
- *	 )
  1768
+ *  1 => 'bill',
  1769
+ *  'fred' => array(
  1770
+ *     2 => 'fred',
  1771
+ *     3 => 'fred jr.'
  1772
+ *  )
1770 1773
  * );
1771 1774
  * $this->Form->select('Model.field', $options);
1772 1775
  * }}}
@@ -1779,8 +1782,8 @@ public function submit($caption = null, $options = array()) {
1779 1782
  *
1780 1783
  * {{{
1781 1784
  * $options = array(
1782  
- *		array('name' => 'United states', 'value' => 'USA'),
1783  
- *		array('name' => 'USA', 'value' => 'USA'),
  1785
+ *  array('name' => 'United states', 'value' => 'USA'),
  1786
+ *  array('name' => 'USA', 'value' => 'USA'),
1784 1787
  * );
1785 1788
  * }}}
1786 1789
  *

0 notes on commit e620433

Please sign in to comment.
Something went wrong with that request. Please try again.