コード例 #1
0
 public static function layout(array $active = [])
 {
     $nav_bar = parent::layout(array_merge($active, [TabbedLayout::update()]));
     return $nav_bar;
 }
コード例 #2
0
 public function behaviors()
 {
     $behaviors = ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'rules' => [['allow' => true, 'roles' => [RbacController::admin]]]], 'layout' => ['class' => GroupLayout::className(), 'only' => ['list', 'create']], 'manage-layout' => ['class' => GroupManageLayout::className(), 'except' => ['list', 'create']]];
     return $behaviors;
 }