public function behaviors() { return array_merge_recursive(parent::behaviors(), ['seoBehavior' => SeoBehavior::className()]); }
public function behaviors() { return array_merge_recursive(parent::behaviors(), ['cn' => ['class' => CalculateNotice::className(), 'callback' => function () { return self::find()->status(self::STATUS_NEW)->count(); }]]); }
public function behaviors() { return array_merge_recursive(parent::behaviors(), ['seoBehavior' => SeoBehavior::className(), 'taggabble' => Taggable::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true]]); }
public function behaviors() { return array_merge_recursive(parent::behaviors(), [CacheFlush::className(), SortableModel::className()]); }
/** * @inheritDoc */ public function behaviors() { return ArrayHelper::merge(parent::behaviors(), ['seoBehavior' => ['class' => SeoBehavior::class]]); }