System:Model:whereLike

From Aspen Documentation

Adds a standard where like %% condition

Since 1.0

Arguments

void whereLike (string $field, mixed $value, [string $match = 'AND'])

field
Database table field name.
value
Value to match.
match
Connecting operator to previous where statement. Default is AND.

Returns

This function does not return an array.

Examples

Example:

$this->APP->model->whereLike('name', 'John');