Example #1
0
 public function behaviors()
 {
     return ['category' => ['class' => CategoryBehavior::className()]];
 }
Example #2
0
 public function behaviors()
 {
     return ['translit' => ['class' => TranslitBehavior::className()], 'category' => ['class' => CategoryBehavior::className(), 'route' => '/cms/default/page']];
 }
Example #3
0
 public function behaviors()
 {
     return ['translit' => ['class' => TranslitBehavior::className()], 'category' => ['class' => CategoryBehavior::className(), 'prefix' => 'shop', 'itemClass' => 'app\\modules\\cms\\models\\Page'], ['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'dateCreate', 'updatedAtAttribute' => false, 'value' => new Expression('"' . date('Y-m-d H:i:s') . '"')]];
 }
Example #4
0
 public function behaviors()
 {
     return ['translit' => ['class' => TranslitBehavior::className()], 'category' => ['class' => CategoryBehavior::className(), 'prefix' => 'discount', 'itemParentField' => 'categoryId', 'itemClass' => 'app\\modules\\discount\\models\\Service', 'itemWith' => ['image', 'category'], 'route' => 'discount/default/category'], ['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'dateCreate', 'updatedAtAttribute' => false, 'value' => new Expression('"' . date('Y-m-d H:i:s') . '"')]];
 }