Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $criteria=new CDbCriteria();
- $criteria->order = 'id ASC';
- $count=MerchantBatchCode::model()->count($criteria);
- $pages=new CPagination($count);
- $pages->pageSize=50;
- $pages->applyLimit($criteria);
- $model= MerchantBatchCode::model()->findAll($criteria);
- $this->render('voucher',array(
- 'allData'=>$model,
- 'pages' => $pages,
- 'total'=>$count
- ));
Advertisement
Add Comment
Please, Sign In to add comment