예제 #1
0
 /**
  * Lists all AuthItem models.
  *
  * @return mixed
  */
 public function actionIndex()
 {
     $query = AuthItem::find();
     $config = ['pageSize' => Yii::$app->params['pageSize'], 'where' => ['type' => 1]];
     $locals = YiiForum::getPagedRows($query, $config);
     return $this->render('/role/index', $locals);
 }
예제 #2
0
 /**
  * Lists all AuthItem models.
  *
  * @return mixed
  */
 public function actionIndex()
 {
     $groups = YiiForum::getAppParam('cachedPermissionsGroup');
     $query = AuthItem::find();
     $config = ['pageSize' => Yii::$app->params['pageSize'], 'order' => 'created_at DESC', 'where' => ['type' => 2]];
     $locals = YiiForum::getPagedRows($query, $config);
     $locals['groups'] = $groups;
     return $this->render('index', $locals);
 }
예제 #3
0
 public function actionIndex()
 {
     $searchUrlArr = [];
     // 设置搜索条件
     $searchArr = $this->_getSearchCondition($searchUrlArr);
     $queryModel = new Query();
     $query = $queryModel->from(FlowItem::tableName());
     $config = ['pageSize' => Yii::$app->params['pageSize'], 'where' => $searchArr, 'urlWhere' => $searchUrlArr];
     $locals = YiiForum::getPagedRows($query, $config);
     return $this->render('index', $locals);
 }