/** * @inheritdoc */ public function behaviors() { return ['seo' => ['class' => MetaBehavior::className(), 'index' => $this->defaultAction], 'access' => ['class' => AccessControl::className(), 'only' => ['logout', 'signup', 'profile'], 'rules' => [['actions' => ['signup'], 'allow' => true, 'roles' => ['?']], ['actions' => ['logout', 'profile'], 'allow' => true, 'roles' => ['@']]]]]; }
public function behaviors() { return ['seo' => ['class' => MetaBehavior::className(), 'index' => $this->defaultAction]]; }
/** * @inheritdoc */ public function behaviors() { return ['seo' => ['class' => MetaBehavior::className()]]; }