public function behaviors() { return [['class' => SortableController::className(), 'model' => ItemCarousel::className()], ['class' => StatusController::className(), 'model' => ItemCarousel::className()]]; }
public function getItems() { return $this->hasMany(ItemCarousel::className(), ['carousel_id' => 'carousel_id'])->orderBy(['order_num' => SORT_ASC]); }