示例#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]]);
 }