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