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