Commit 170bb70d3dcc4be74f5788fbfb1d997c40042d3f
1 parent
a9689544
-Sitemap updated
Showing
1 changed file
with
5 additions
and
6 deletions
Show diff stats
console/controllers/SiteMapController.php
... | ... | @@ -4,22 +4,16 @@ |
4 | 4 | |
5 | 5 | use common\models\Articles; |
6 | 6 | use common\models\Seo; |
7 | - use common\modules\product\helpers\FilterHelper; | |
8 | - use common\modules\product\models\Brand; | |
9 | 7 | use common\modules\product\models\Category; |
10 | 8 | use common\modules\product\models\Product; |
11 | 9 | use common\modules\rubrication\models\TaxOption; |
12 | 10 | use frontend\models\ProductFrontendSearch; |
13 | 11 | use Yii; |
14 | 12 | use common\models\Page; |
15 | - use common\models\PageSearch; | |
16 | 13 | use yii\helpers\ArrayHelper; |
17 | 14 | use yii\helpers\Console; |
18 | 15 | use yii\helpers\Url; |
19 | 16 | use yii\console\Controller; |
20 | - use yii\web\NotFoundHttpException; | |
21 | - use yii\filters\VerbFilter; | |
22 | - use developeruz\db_rbac\behaviors\AccessBehavior; | |
23 | 17 | |
24 | 18 | /** |
25 | 19 | * PageController implements the CRUD actions for Page model. |
... | ... | @@ -128,6 +122,11 @@ |
128 | 122 | 'taxGroup.category', |
129 | 123 | ] |
130 | 124 | ) |
125 | + ->where( | |
126 | + [ | |
127 | + 'tax_group.is_filter' => true, | |
128 | + ] | |
129 | + ) | |
131 | 130 | ->all(); |
132 | 131 | |
133 | 132 | } | ... | ... |