System:Model:query

From Aspen Documentation

A wrapper for running a query directly to the db, and provided the results directly to the caller.

Since 1.0

Arguments

object query ([string $query = false])

query
SQL query.

Returns

Returns an ADOdb object if successful.

Examples

Example:

$this->APP->model->query('SELECT * FROM blog');