Skip to content
Permalink
Browse files

Updating and expanding form helper submit documentation. Refs #335

  • Loading branch information...
markstory committed Feb 25, 2010
1 parent 47afcee commit e4b392a4ffeef3551d4c92171a467ceddee03598
Showing with 6 additions and 1 deletion.
  1. +6 −1 cake/libs/view/helpers/form.php
@@ -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

0 comments on commit e4b392a

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