Returns HTML button tag.
21.
CakePHP — Form Handling
CakePHP
60
Description Creates a
tag. The type attribute defaults to
type="submit" . You can change it to a different value by using
$options['type'] .
The following functions are used
to generate checkbox on HTML page.
Syntax Checkbox (string
$fieldName , array
$options array() )
Parameters
Name of a field, like this "Modelname.fieldname"
Array of HTML attributes. Possible options are value, checked,
hiddenField, disabled, default.
Returns An HTML text input element.
Description Creates a checkbox input widget.
The following functions are used
to create form on HTML page.
Syntax create( mixed
$model null , array
$options array() )
Parameters
The model name for which the form is being defined. Should
include
the
plugin
name
for
plugin
models.
e.g.
ContactManager.Contact. If an array is passed and $options
argument is empty, the array will be used as options. If false no
model is used.
An array of html attributes and options. Possible options are type,
action, url, default, onsubmit, inputDefaults, encoding