mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Expanding documentation for FormHelper::submit() Fixes #390
This commit is contained in:
parent
763aa524b9
commit
348fe6f574
1 changed files with 7 additions and 1 deletions
|
@ -1097,11 +1097,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
|
||||
*/
|
||||
function submit($caption = null, $options = array()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue