Tag

Navigation:  Development > Function Reference > InformationSet >

Tag

Previous pageReturn to chapter overviewNext page

Create HTML input element.

 

Format: App::InformationSet(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::InformationSet('countries')
   ->Tag(
      "data[Shop][country]",
      "US",
      array(
          "key"=>"code",
          "val"=>"name",
          "inputType"=>"selectTag"
       )
   );