public function actionIndex() { $model = new Tickets(); if (isset($_GET['Tickets'])) { $model->setAttributes($_GET['Tickets']); } $dataProvider = $model->search(); $this->render('//tickets/index', array('dataProvider' => $dataProvider, 'gs' => CHtml::listData(Gs::model()->cache(60)->findAll(), 'id', 'name'), 'categories' => CHtml::listData(TicketsCategories::model()->cache(60)->findAll(), 'id', 'title'), 'model' => $model)); }