System:Form:cv

From Aspen Documentation

Returns the current value for a field. This function is shorter alias for getCurrentValue.

Since 1.0

Arguments

mixed cv (string $field, [boolean $escape = false])

field
The field name.
escape
Whether or not to escape the data for database queries.

Returns

Returns mixed - whatever the assigned value of the field is.

Examples

Example:

$this->APP->form->cv('author_id');