Create Drop Down Number list.
App::Html()->numberTag(Name,[Range],[Default Value],[Options]);
Parameter |
Description |
---|---|
Name |
Name of the Input element |
Range |
Define Year range in Array |
Default Value |
Default selected value |
Options |
HTML Attributes |
See bellow example:
echo App::Html()
->numberTag(
"data[Signup][experience]",
array("Start"=>"4","End"=>"10"),
"5",
array("class"=>"app_input")
);
/*
Return value
<select name="data[Signup][experience]" class="app_input" >
<option value=""></option>
<option value="4">4</option>
<option selected="selected" value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
*/