@@ -2,22 +2,21 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\page\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\Controller; |
| 7 | +use app\models\Search; |
|
| 6 | 8 | use app\modules\core\helpers\ContentBlockHelper; |
| 7 | 9 | use app\modules\core\models\ContentBlock; |
| 8 | 10 | use app\modules\page\models\Page; |
| 9 | -use app\models\Search; |
|
| 10 | -use app\modules\seo\behaviors\MetaBehavior; |
|
| 11 | +use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 11 | 12 | use app\traits\LoadModel; |
| 12 | 13 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 13 | -use Yii; |
|
| 14 | 14 | use yii\caching\TagDependency; |
| 15 | 15 | use yii\data\Pagination; |
| 16 | 16 | use yii\db\ActiveQuery; |
| 17 | 17 | use yii\web\ForbiddenHttpException; |
| 18 | 18 | use yii\web\NotFoundHttpException; |
| 19 | 19 | use yii\web\Response; |
| 20 | -use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 21 | 20 | |
| 22 | 21 | class PageController extends Controller |
| 23 | 22 | { |
@@ -2,6 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\Controller; |
| 6 | 7 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 7 | 8 | use app\extensions\DefaultTheme\models\ThemeActiveWidgets; |
@@ -13,13 +14,13 @@ discard block |
||
| 13 | 14 | use app\modules\core\helpers\ContentBlockHelper; |
| 14 | 15 | use app\modules\core\helpers\EventTriggeringHelper; |
| 15 | 16 | use app\modules\core\models\ContentBlock; |
| 17 | +use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 16 | 18 | use app\modules\shop\events\ProductPageShowed; |
| 17 | 19 | use app\modules\shop\exceptions\EmptyFilterHttpException; |
| 18 | 20 | use app\modules\shop\models\Category; |
| 19 | 21 | use app\modules\shop\models\Product; |
| 20 | 22 | use app\traits\DynamicContentTrait; |
| 21 | 23 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 22 | -use Yii; |
|
| 23 | 24 | use yii\caching\TagDependency; |
| 24 | 25 | use yii\data\Pagination; |
| 25 | 26 | use yii\helpers\ArrayHelper; |
@@ -29,7 +30,6 @@ discard block |
||
| 29 | 30 | use yii\web\NotFoundHttpException; |
| 30 | 31 | use yii\web\Response; |
| 31 | 32 | use yii\web\ServerErrorHttpException; |
| 32 | -use app\modules\seo\behaviors\SetCanonicalBehavior; |
|
| 33 | 33 | |
| 34 | 34 | class ProductController extends Controller |
| 35 | 35 | { |