Create HTML input element.
Format: App::CategorySet(NAME)->Tag(NAME, VALUE, PARAMETER)
NAME:
Name of the Input field.
VALUE:
Default value of the input field
PARAMETER
Parameter has bellow fields:
key: Field used a value of input field.
val: Field used as a label.
inputType: HTML input type(selectTag, radoTag, checkboxTag)
For example:
$data = App::CategorySet('blog-cat')
->Tag(
"data[Blog][Category]",
"1",
array(
"inputType"=>"selectTag"
)
);
// Return
/*
<select name="data[Blog][Category]" >
<option value=""></option>
<option value="2">Applications</option>
<option value="14">Applications>>Addons</option>
<option value="13">Applications>>Component</option>
<option selected="selected" value="1">Page Manager</option>
<option value="16">Page Manager>>Snip</option>
<option value="15">Page Manager>>Static Page</option>
</select>
*/