Commit cf8373f33c6eb66006d65766c83b98118fc7cd1a
1 parent
5181a91a
big commti
Showing
2 changed files
with
14 additions
and
14 deletions
Show diff stats
frontend/views/catalog/products.php
| ... | ... | @@ -134,18 +134,18 @@ use yii\helpers\Url; |
| 134 | 134 | <div class="catalog_product_list view_table"> |
| 135 | 135 | |
| 136 | 136 | |
| 137 | -<!-- --><?//= ListView::widget([ | |
| 138 | -// 'dataProvider' => $productProvider, | |
| 139 | -// 'itemView' => function ($model, $key, $index, $widget) use($category) { | |
| 140 | -// return $this->render('_product_item',[ | |
| 141 | -// 'model' => $model, | |
| 142 | -// 'category' => $category | |
| 143 | -// ]); | |
| 144 | -// }, | |
| 145 | -// 'layout' => "{items}<div class=\"clearfix\"></div>{pager}", | |
| 146 | -// ]) | |
| 147 | -// | |
| 148 | -// ?> | |
| 137 | + <?= ListView::widget([ | |
| 138 | + 'dataProvider' => $productProvider, | |
| 139 | + 'itemView' => function ($model, $key, $index, $widget) use($category) { | |
| 140 | + return $this->render('_product_item',[ | |
| 141 | + 'model' => $model, | |
| 142 | + 'category' => $category | |
| 143 | + ]); | |
| 144 | + }, | |
| 145 | + 'layout' => "{items}<div class=\"clearfix\"></div>{pager}", | |
| 146 | + ]) | |
| 147 | + | |
| 148 | + ?> | |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | ... | ... |
frontend/views/layouts/main.php
| ... | ... | @@ -178,7 +178,7 @@ use common\models\Event; |
| 178 | 178 | </table> |
| 179 | 179 | </td> |
| 180 | 180 | <td valign="middle" class="col-md-3 col-lg-3 new_search"> |
| 181 | - <form id="search_products" method="get" action="/search"> | |
| 181 | + <form id="search_products" method="get" action="/search/main"> | |
| 182 | 182 | <div class="input-group"> |
| 183 | 183 | <input type="text" name="word" class="form-control" placeholder="введите артикул или ID" value="" required> |
| 184 | 184 | <input class="new-btn-search" type="submit" value=""> |
| ... | ... | @@ -237,7 +237,7 @@ use common\models\Event; |
| 237 | 237 | <span class="search-title">Вы еще ничего не искали у нас на сайте</span> |
| 238 | 238 | </div> |
| 239 | 239 | <div class="col-md-12 blog-search"> |
| 240 | - <form id="search_products" method="get" action="/search"> | |
| 240 | + <form id="search_products" method="get" action="/search/main"> | |
| 241 | 241 | <div class="input-group"> |
| 242 | 242 | <input type="text" name="word" class="form-control" placeholder="Найдите то, что нужно Вам среди более 5000 светильников" value="" required> |
| 243 | 243 | <input class="new-btn-search" type="submit" value=""> | ... | ... |