Blame view

common/modules/product/widgets/brandsCarouselWidget.php 648 Bytes
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

5c2eb7c8   Yarik   Big commit almost...
2
3
4
5
6
7
8
      

      namespace common\modules\product\widgets;

      

      use common\modules\product\models\Brand;

      use yii\base\Widget;

      

      class brandsCarouselWidget extends Widget

d8c1a2e0   Yarik   Big commit artbox
9
      {

5c2eb7c8   Yarik   Big commit almost...
10
11
12
13
14
15
16
17
18
19
20
          

          public function init()

          {

              parent::init();

          }

          

          public function run()

          {

              $brands = Brand::find()

                             ->with('lang')

                             ->all();

772a3ca4   Yarik   Big commit
21
22
23
24
25
26
              return $this->render(

                  'brandsCarousel',

                  [

                      'brands' => $brands,

                  ]

              );

5c2eb7c8   Yarik   Big commit almost...
27
          }

772a3ca4   Yarik   Big commit
28
29
      }