Plugin Framework Function remember()

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

Summary

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.

Description

Description

Parameters

$name

The name of the hidden field

$value

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

$htmlId

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

$type

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.

Example

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

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