Create a button Tag.
App::Html()->buttonTag(Name,[Value],[Option]);
Parameter |
Description |
---|---|
Name |
Name of the Input element |
Value |
Button text |
Options |
HTML Attributes |
See bellow example:
echo App::Html()
->buttonTag(
"data[Buttonl][submit]",
"Submit",
array(
"id"=>"submit",
"class"=>"button orange medium"
)
);
/*
Return value
<input type="button" name="data[Buttonl][submit]" id="submit" class="button orange medium" value="Submit" />
*/