Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update doc block.

  • Loading branch information...
commit e620433680a5133b4f78fe0df0c37f1728da6ade 1 parent e38c149
@markstory markstory authored
Showing with 10 additions and 7 deletions.
  1. +10 −7 lib/Cake/View/Helper/FormHelper.php
View
17 lib/Cake/View/Helper/FormHelper.php
@@ -1749,6 +1749,9 @@ public function submit($caption = null, $options = array()) {
* - `escape` - If true contents of options will be HTML entity encoded. Defaults to true.
* - `value` The selected value of the input.
* - `class` - When using multiple = checkbox the classname to apply to the divs. Defaults to 'checkbox'.
+ * - `disabled` - Control the disabled attribute. When creating a select box, set to true to disable the
+ * select box. When creating checkboxes, `true` will disable all checkboxes. You can also set disabled
+ * to a list of values you want to disable when creating checkboxes.
*
* ### Using options
*
@@ -1762,11 +1765,11 @@ public function submit($caption = null, $options = array()) {
* While a nested options array will create optgroups with options inside them.
* {{{
* $options = array(
- * 1 => 'bill',
- * 'fred' => array(
- * 2 => 'fred',
- * 3 => 'fred jr.'
- * )
+ * 1 => 'bill',
+ * 'fred' => array(
+ * 2 => 'fred',
+ * 3 => 'fred jr.'
+ * )
* );
* $this->Form->select('Model.field', $options);
* }}}
@@ -1779,8 +1782,8 @@ public function submit($caption = null, $options = array()) {
*
* {{{
* $options = array(
- * array('name' => 'United states', 'value' => 'USA'),
- * array('name' => 'USA', 'value' => 'USA'),
+ * array('name' => 'United states', 'value' => 'USA'),
+ * array('name' => 'USA', 'value' => 'USA'),
* );
* }}}
*
Please sign in to comment.
Something went wrong with that request. Please try again.