Blame view

common/modules/product/widgets/brandsCarouselWidget.php 493 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <?php

  

  namespace common\modules\product\widgets;

  

  use common\modules\product\models\Brand;

  use common\modules\product\models\Category;

  use yii\base\Widget;

  

  class brandsCarouselWidget extends Widget {

      public function init()

      {

          parent::init(); // TODO: Change the autogenerated stub

      }

  

      public function run() {

871a7349   Administrator   big commti
16
          $brands = Brand::find()->all();

4253cbec   root   first commit
17
18
19
20
21
          return $this->render('brandsCarousel', [

              'brands' => $brands,

          ]);

      }

  }