<?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() {
        $brands = Brand::find()->with('brandName')->all();
        return $this->render('brandsCarousel', [
            'brands' => $brands,
        ]);
    }
}