From Aspen Documentation
Returns a single field, single-record value from a query.
Since 1.0
Arguments
mixed quickValue ([string $sql = false], [string $return_field = 'id'])
- sql
- An SQL query.
- return_field
- The specific field name you want the value from.
Returns
Returns an array, or false if query fails.
Examples
Example:
$this->APP->model->quickValue('SELECT email FROM users WHERE id = 7', 'email');