Skip to content

Commit

Permalink
Updating and expanding form helper submit documentation. Refs #335
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 25, 2010
1 parent 47afcee commit e4b392a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cake/libs/view/helpers/form.php
Expand Up @@ -1200,12 +1200,17 @@ function button($title, $options = array()) {
}

/**
* Creates a submit button element.
* Creates a submit button element. This method will generate `<input />` elements that
* can be used to submit, and reset forms by using $options. image submits can be created by supplying an
* image path for $caption.
*
* ### Options
*
* - `div` - Include a wrapping div? Defaults to true. Accepts sub options similar to
* FormHelper::input().
* - `before` - Content to include before the input.
* - `after` - Content to include after the input.
* - `type` - Set to 'reset' for reset inputs. Defaults to 'submit'
* - Other attributes will be assigned to the input element.
*
* @param string $caption The label appearing on the button OR if string contains :// or the
Expand Down

0 comments on commit e4b392a

Please sign in to comment.