public function actionIndex() { $model = new Documents('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Documents'])) { $model->attributes = $_GET['Documents']; } $this->render('index', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Documents('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Documents'])) { $model->attributes = $_GET['Documents']; } $this->render('admin_datatable'); }