Skip to content

Commit

Permalink
Expanding documentation for FormHelper::submit() Fixes #390
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 25, 2010
1 parent 9632e74 commit 47afcee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cake/libs/view/helpers/form.php
Expand Up @@ -1202,11 +1202,17 @@ function button($title, $options = array()) {
/**
* Creates a submit button element.
*
* ### Options
*
* - `div` - Include a wrapping div? Defaults to true. Accepts sub options similar to
* FormHelper::input().
* - Other attributes will be assigned to the input element.
*
* @param string $caption The label appearing on the button OR if string contains :// or the
* extension .jpg, .jpe, .jpeg, .gif, .png use an image if the extension
* exists, AND the first character is /, image is relative to webroot,
* OR if the first character is not /, image is relative to webroot/img.
* @param array $options
* @param array $options Array of options. See above.
* @return string A HTML submit button
* @access public
*/
Expand Down

0 comments on commit 47afcee

Please sign in to comment.