buttonTag

Navigation:  Development > Function Reference > Helpers > Html >

buttonTag

Previous pageReturn to chapter overviewNext page

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" />
*/