メインコンテンツまでスキップ
Version: Fegg 4.x

Model::select

SELECTクエリを実行

説明​

public array Model::select( [ array $fields = ['*'] ] )

引数​

名前データ型デフォルト備考
$fieldsarray['*']選択フィールド

例​

Controller
$model = new Model(false, array('table' => 'cms_news'));
$result = $model->select(['id', 'title']);