Example #1
0
 public function behaviors()
 {
     return array_merge_recursive(parent::behaviors(), ['seoBehavior' => SeoBehavior::className(), 'taggabble' => Taggable::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true]]);
 }
Example #2
0
 public function behaviors()
 {
     return ['seoBehavior' => SeoBehavior::className(), 'taggabble' => Taggable::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true]];
 }
Example #3
0
 public function behaviors()
 {
     return ['seoBehavior' => SeoBehavior::className(), 'taggabble' => Taggable::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true], 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['title', 'short', 'text'], 'admin_routes' => ['admin/*']]]];
 }