FilterWidget.php 495 Bytes
<?php
namespace frontend\widgets;

use yii\base\Widget;

class FilterWidget extends Widget
{

    public $category;
    public $groups;
    public $filter;
    public $brands;


    public function init(){

        parent::init();

    }


    public function run()
    {

        return $this->render('_filter_view',[
            'category'=>$this->category,
            'groups'=>$this->groups,
            'filter'=>$this->filter,
            'brands'=>$this->brands
        ]);

    }

}
?>