/** * Manage all models. */ public function actionIndex() { LoginForm::checkAdmin(); $this->pageTitle = "Users"; $model = new User('search'); $model->unsetAttributes(); if (isset($_GET['User'])) { $model->attributes = $_GET['User']; } $this->render('index', array('model' => $model)); }