Exemplo n.º 1
0
 /**
  * 查找授权项目关联的授权任务
  * @author lixupeng
  * @param string $id 授权项目名
  */
 public function actionRelatedTask($id)
 {
     $authitemsObj = self::findModel($id);
     $model = new models\RbacTaskItems();
     $model->scenario = 'search';
     $dataProvider = $model->search([$model->formName() => ['authitems_name' => $authitemsObj->item_name]]);
     return $this->render('/rbac/authitems/relatedTask', ['authitemsObj' => $authitemsObj, 'dataProvider' => $dataProvider]);
 }