Expanding documentation for FormHelper::submit() Fixes #390

This commit is contained in:
Mark Story 2010-02-24 22:45:49 -05:00
parent 9632e74cfc
commit 47afceea22

View file

@ -1202,11 +1202,17 @@ class FormHelper extends AppHelper {
/**
* 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
*/