System:Form:loadRecord

From Aspen Documentation

Loads a single record from a table, as well as the table schema for use in processing forms. If the record doesn't exist, this function simply defaults to loading the table schema only, exactly like loadTable.

Since 1.0

Arguments

void loadRecord (string $table, [integer $id = false], [string $field = false])

table
Database table that will be used.
id
Primary key id for the record to be loaded, or any matching unique value if field is set.
field
Field name that "where" match should apply to.

Returns

This function does not return any values.

Examples

Example:

$this->APP->form->loadRecord('blog', 5);