Logo white

Yarik / artbox1

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • artbox1
  • common
  • modules
  • product
  • widgets
  • brandsCarouselWidget.php
  • Big commit
    772a3ca4
    Yarik authored
    2016-11-06 18:20:06 +0200  
    Browse Code ยป
brandsCarouselWidget.php 648 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php
    
    namespace common\modules\product\widgets;
    
    use common\modules\product\models\Brand;
    use yii\base\Widget;
    
    class brandsCarouselWidget extends Widget
    {
        
        public function init()
        {
            parent::init();
        }
        
        public function run()
        {
            $brands = Brand::find()
                           ->with('lang')
                           ->all();
            return $this->render(
                'brandsCarousel',
                [
                    'brands' => $brands,
                ]
            );
        }
    }