/** * Manages all models. */ public function actionManage() { $model = new UserDevice('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['UserDevice'])) { $model->attributes = $_GET['UserDevice']; } $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', 'User Devices Manage'); $this->pageDescription = ''; $this->pageMeta = ''; $this->render('admin_manage', array('model' => $model, 'columns' => $columns)); }