Finished unit test of ActiveDataProvider.

This commit is contained in:
Qiang Xue
2013-07-09 09:34:45 -04:00
parent 53a1f9608a
commit aa31b56aaf
2 changed files with 23 additions and 5 deletions

View File

@@ -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,
* ),