/** * @return array */ public function behaviors() { return ['sortable' => SortableModel::className(), 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['label'], 'admin_routes' => ['admin/*']]]]; }
public function behaviors() { return [CacheFlush::className(), SortableModel::className(), 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['title', 'short', 'text'], 'admin_routes' => ['admin/*']]]]; }
public function behaviors() { return [SortableModel::className(), 'seoBehavior' => SeoBehavior::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true], 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['title', 'file', 'image'], 'admin_routes' => ['admin/*']]]]; }
public function behaviors() { return ['seoBehavior' => SeoBehavior::className(), 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['title', 'text', 'text_1', 'text_2'], 'admin_routes' => ['admin/*']]]]; }