Plugin Framework Function remember()

public final function remember(
$name, $value = false, $htmlId = false, $type = 'hidden'


A shortcut function for writing hidden fields.

Where You Can Use It

Can be used in methods called by plugins. From Zenario 7.0.0 onwards.





The name of the hidden field


The value it should take. If you omit this, it will default to the value for the field returned by the request() function.


If set, the field element will have a DOM id of this value.


From Zenario 7.0.0, you can set the type of field by changing this parameter.

Return Value

Returns the HTML for the hidden field.


echo $this->remember('id', 7);

Draws a hidden field, called id, with a value of 7.