mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-18 07:20:18 +08:00
Finished unit test of ActiveDataProvider.
This commit is contained in:
@@ -35,10 +35,9 @@ use yii\db\Connection;
|
||||
* And the following example shows how to use ActiveDataProvider without ActiveRecord:
|
||||
*
|
||||
* ~~~
|
||||
* $query = new Query;
|
||||
* $provider = new ActiveDataProvider(array(
|
||||
* 'query' => new Query(array(
|
||||
* 'from' => 'tbl_post',
|
||||
* )),
|
||||
* 'query' => $query->from('tbl_post'),
|
||||
* 'pagination' => array(
|
||||
* 'pageSize' => 20,
|
||||
* ),
|
||||
|
||||
Reference in New Issue
Block a user