public function actionIndex() { $model = new PaperApproval('search'); $model->unsetAttributes(); if (isset($_GET['PaperApproval'])) { $model->attributes = $_GET['PaperApproval']; } $modelBus = new PaperApprovalBus('search'); $modelBus->unsetAttributes(); if (isset($_GET['PaperApprovalBus'])) { $model->attributes = $_GET['PaperApprovalBus']; } $this->render('index', array('model' => $model, 'dataProvider' => $model->getPaperList(), 'modelBus' => $modelBus, 'dataProviderBus' => $modelBus->getList())); }