Skip to content

Commit

Permalink
fixed typo on CPagination commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
luislobo committed Apr 12, 2012
1 parent 3aaed2c commit 479b65f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/web/CPagination.php
Expand Up @@ -22,14 +22,14 @@
* Controller action:
* <pre>
* function actionIndex(){
* $criteria = new CDbCriteria();
* $criteria=new CDbCriteria();
* $count=Article::model()->count($criteria);
* $pages=new CPagination($count);
*
* // results per page
* $pages->pageSize=10;
* $pages->applyLimit($criteria);
* $models = Post::model()->findAll($criteria);
* $models=Article::model()->findAll($criteria);
*
* $this->render('index', array(
* 'models' => $models,
Expand Down

0 comments on commit 479b65f

Please sign in to comment.