mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Guide output-data-providers fixed code example
This commit is contained in:
@ -183,7 +183,7 @@ use yii\data\ActiveDataProvider;
|
||||
$query = Post::find()->where(['status' => 1]);
|
||||
|
||||
$provider = new ActiveDataProvider([
|
||||
'query' => Post::find(),
|
||||
'query' => $query,
|
||||
]);
|
||||
|
||||
// Post オブジェクトの配列を返す
|
||||
|
Reference in New Issue
Block a user