コード例 #1
0
 public function actionIndex()
 {
     //		$dataProvider = new CActiveDataProvider('Lists', array(
     //															  'pagination' => false/*array('pageSize' => 40)*/,
     //															  'sort' => array('multiSort' => true),
     //														 ));
     $model = new Lists('search');
     if (isset($_GET['Lists'])) {
         $model->attributes = $_GET['Lists'];
     }
     $dataProvider = $model->search();
     $dataProvider->pagination = false;
     $dataProvider->sort = array('multiSort' => true);
     $this->render('index', array('dataProvider' => $dataProvider));
 }