Esempio n. 1
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return ['sortable' => SortableModel::className(), 'mlBehavior' => ['class' => MultiLanguageBehavior::className(), 'mlConfig' => ['db_table' => 'translations_with_string', 'attributes' => ['label'], 'admin_routes' => ['admin/*']]]];
 }
Esempio n. 2
0
 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/*']]]];
 }
Esempio n. 3
0
 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/*']]]];
 }
Esempio n. 4
0
 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/*']]]];
 }