コード例 #1
0
 public function actionAccount()
 {
     return parent::actionAccount();
 }
 /** @inheritdoc */
 public function behaviors()
 {
     return array_merge_recursive(parent::behaviors(), ['access' => ['rules' => [['allow' => true, 'actions' => ['profile-image-upload'], 'roles' => ['@']]]]]);
 }
コード例 #3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     array_push($behaviors['access']['rules'][0]['actions'], "avatar");
     return $behaviors;
 }