Beispiel #1
0
 public function actionListRole()
 {
     $filterModel = new Search('1');
     return $this->render('listRole', ['filterModel' => $filterModel, 'dataProvider' => $filterModel->search(\Yii::$app->request->get())]);
 }
 /**
  * Lists all created items.
  * @return string
  */
 public function actionIndex()
 {
     $filterModel = new Search($this->type);
     return $this->render('index', ['filterModel' => $filterModel, 'dataProvider' => $filterModel->search(\Yii::$app->request->get())]);
 }