/** * Manages all models. */ public function actionManage() { $model = new Banners('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Banners'])) { $model->attributes = $_GET['Banners']; } $columnTemp = array(); if (isset($_GET['GridColumn'])) { foreach ($_GET['GridColumn'] as $key => $val) { if ($_GET['GridColumn'][$key] == 1) { $columnTemp[] = $key; } } } $columns = $model->getGridColumn($columnTemp); $this->pageTitle = Yii::t('phrase', 'Manage Banner'); $this->pageDescription = ''; $this->pageMeta = ''; $this->render('admin_manage', array('model' => $model, 'columns' => $columns)); }