Model::select
Set Select Parameter
Description
public self Model::select( string $select )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$select | string | Select fields |
Example
Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));
// Get `news_id` and `title` columns
$records = $model->select('news_id, title')->find();