Blame view

widgets/brandsCarouselWidget.php 650 Bytes
2f25da09   Yarik   first commit
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 artweb\artbox\ecommerce\widgets;

      

      use artweb\artbox\ecommerce\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,

                  ]

              );

          }

      }