示例#1
0
 /**
  * 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));
 }
示例#2
0
 /**
  * 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));
 }
示例#3
0
 /**
  * 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));
 }