_init()
button()
checkbox()
close()
csrf()
fieldset_close()
fieldset_open()
file()
forge()
hidden()
input()
instance()
label()
open()
password()
prep_value()
radio()
reset()
select()
submit()
textarea()
attr_to_string()
$instance
Form Class
Helper for creating forms with support for creating dynamic form objects.
| package | Fuel |
|---|---|
| category | Core |
_init() : void
checkbox(string | array $field, string $value, mixed $checked, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
mixedeither attributes (array) or bool/string to set checked status
array
stringclose() : string
stringcsrf() : string
stringfieldset_close() : string
stringfieldset_open(array $attributes, string $legend) : string
arrayarray with tag attribute settings
stringstring for the fieldset legend
stringfile(string | array $field, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
array
stringforge($fieldset, array $config)
input(string | array $field, string $value, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringlabel(string | array $label, string $id, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringopen(string | array $attributes, array $hidden) : string
stringarrayaction string or array with more tag attribute settings
array
stringpassword(string | array $field, string $value, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringprep_value(string $value) : string
Prepares the value for display in the form
string
stringradio(string | array $field, string $value, mixed $checked, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
mixedeither attributes (array) or bool/string to set checked status
array
stringreset(string | array $field, string $value, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringselect(string | array $field, string $values, array $options, array $attributes) : string
Generates a html select element based on the given parameters
stringarrayeither fieldname or full attributes array (when array other params are ignored)
stringselected value(s)
arrayarray of options and option groups
array
stringsubmit(string | array $field, string $value, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringtextarea(string | array $field, string $value, array $attributes) : string
stringarrayeither fieldname or full attributes array (when array other params are ignored)
string
array
stringattr_to_string(array $attr) : string
Wraps the global attributes function and does some form specific work
array
string$instance