/** * This is the default 'index' action that is invoked * when an action is not explicitly requested by users. */ public function actionIndex() { $this->breadcrumbs = array($this->ID . ' Manager' => array('index')); $model = new Roles('search'); $model->unsetAttributes(); if (isset($_GET['Roles'])) { $model->attributes = $_GET['Roles']; } $this->render('index', array('model' => $model)); }
/** * Lists all models. */ public function actionIndex() { $model = new Roles('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Roles'])) { $model->attributes = $_GET['Roles']; } $this->render('index', array('model' => $model, 'actions' => $this->listActionsCanAccess)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Roles('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Roles'])) { $model->attributes = $_GET['Roles']; } $this->render('admin', array('model' => $model)); }