Ejemplo n.º 1
0
 public function behaviors()
 {
     return ['cacheflush' => ['class' => CacheFlush::className(), 'key' => [static::tableName() . '_tree', static::tableName() . '_flat']], 'seoBehavior' => SeoBehavior::className(), 'sluggable' => ['class' => SluggableBehavior::className(), 'attribute' => 'title', 'ensureUnique' => true], 'tree' => ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree']];
 }
Ejemplo n.º 2
0
 public function behaviors()
 {
     return [CacheFlush::className(), SortableModel::className()];
 }
Ejemplo n.º 3
0
 public function behaviors()
 {
     return array_merge_recursive(parent::behaviors(), [CacheFlush::className(), SortableModel::className()]);
 }
Ejemplo n.º 4
0
 public function behaviors()
 {
     return [CacheFlush::className()];
 }
Ejemplo n.º 5
0
 public function behaviors()
 {
     return ['tree' => ['class' => NestedSetsBehavior::className(), 'treeAttribute' => 'tree'], ['class' => CacheFlush::className(), 'key' => [['yii\\widgets\\FragmentCache', 'menu_item']]]];
 }
Ejemplo n.º 6
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/*']]]];
 }