Exemplo n.º 1
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'rules' => [['roles' => ['user'], 'allow' => true]]], 'synchronize' => ['class' => SynchronizeFiles::className(), 'only' => ['photos']]];
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc$
  */
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'rules' => [['roles' => ['user'], 'allow' => true]]], 'synchronize' => ['class' => SynchronizeFiles::className(), 'only' => ['images', 'files']]];
 }