コード例 #1
0
ファイル: Page.php プロジェクト: engmohamedamer/gotest
 public function behaviors()
 {
     return array_merge_recursive(parent::behaviors(), ['seoBehavior' => SeoBehavior::className()]);
 }
コード例 #2
0
ファイル: Feedback.php プロジェクト: engmohamedamer/gotest
 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
ファイル: News.php プロジェクト: engmohamedamer/testone
 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
ファイル: Carousel.php プロジェクト: engmohamedamer/gotest
 public function behaviors()
 {
     return array_merge_recursive(parent::behaviors(), [CacheFlush::className(), SortableModel::className()]);
 }
コード例 #5
0
ファイル: StaticUrl.php プロジェクト: nanodesu88/easyii
 /**
  * @inheritDoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['seoBehavior' => ['class' => SeoBehavior::class]]);
 }