Commit 9f624ecd by semenov

Добавлен вес товара и количество в резерве

parent fdd04481
......@@ -64,16 +64,11 @@ class Products extends WidgetHasModelsSmart
]);
}
/**
* Подготовка данных для шаблона
* @return $this
*/
public function bind()
public function buildSearch()
{
/*$this->buildSearch();
$this->getSearch()->search(\Yii::$app->request->queryParams);*/
parent::bind();
parent::buildSearch();
//print_r($this->attributes);
$dataProvider = $this->getSearch()->getDataProvider();
$find = $dataProvider->query;
......@@ -188,6 +183,18 @@ class Products extends WidgetHasModelsSmart
return $this;
}
/**
* Подготовка данных для шаблона
* @return $this
*/
public function bind()
{
/*$this->buildSearch();
$this->getSearch()->search(\Yii::$app->request->queryParams);*/
parent::bind();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment