Skip to content
Permalink
Browse files

Update doc block.

  • Loading branch information...
markstory committed Aug 3, 2012
1 parent e38c149 commit e620433680a5133b4f78fe0df0c37f1728da6ade
Showing with 10 additions and 7 deletions.
  1. +10 −7 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'),
* );
* }}}
*

0 comments on commit e620433

Please sign in to comment.
You can’t perform that action at this time.