Model::one
Get one row from the records
Description
public array Model::one( [ 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->one();