Skip to content
Permalink
Browse files

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

  • Loading branch information...
markstory committed Feb 25, 2010
1 parent 763aa52 commit 348fe6f57463aaa20d77984254f493d9ca4fe9f1
Showing with 7 additions and 1 deletion.
  1. +7 −1 cake/libs/view/helpers/form.php
@@ -1097,11 +1097,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
*/
function submit($caption = null, $options = array()) {

0 comments on commit 348fe6f

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.