Model::find
Get rows designated count
Description
public array Model::find( [ string $options = [] ] )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$options | array | [] | Overwrite the options |
Example
Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));
$records = $model->find();