@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace app\modules\seo\controllers; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | +use Yii; |
|
| 6 | 7 | use app\backend\components\BackendController; |
| 7 | 8 | use app\modules\seo\models\OpenGraphObject; |
| 8 | -use Yii; |
|
| 9 | 9 | use yii\data\ActiveDataProvider; |
| 10 | 10 | |
| 11 | 11 | class OpenGraphController extends BackendController |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\seo\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\modules\config\models\BaseConfigurationModel; |
| 6 | 7 | use app\modules\seo\SeoModule; |
| 7 | -use Yii; |
|
| 8 | 8 | |
| 9 | 9 | class ConfigConfigurationModel extends BaseConfigurationModel |
| 10 | 10 | { |
@@ -1,9 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use app\backend\components\ActionColumn; |
| 4 | -use kartik\dynagrid\DynaGrid; |
|
| 5 | -use kartik\helpers\Html; |
|
| 6 | -use kartik\icons\Icon; |
|
| 7 | 4 | |
| 8 | 5 | /** |
| 9 | 6 | * @var $this yii\web\View |
@@ -2,19 +2,18 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\backend; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | -use app\modules\shop\models\Category; |
|
| 7 | 7 | use app\models\Object; |
| 8 | -use app\modules\shop\models\Product; |
|
| 9 | 8 | use app\models\Property; |
| 10 | 9 | use app\models\PropertyGroup; |
| 11 | 10 | use app\models\PropertyStaticValues; |
| 11 | +use app\modules\shop\models\Category; |
|
| 12 | 12 | use app\modules\shop\models\FilterSets; |
| 13 | +use app\modules\shop\models\Product; |
|
| 14 | +use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
|
| 13 | 15 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 14 | -use Yii; |
|
| 15 | -use yii\debug\components\search\Filter; |
|
| 16 | 16 | use yii\filters\AccessControl; |
| 17 | -use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
|
| 18 | 17 | use yii\web\BadRequestHttpException; |
| 19 | 18 | use yii\web\NotFoundHttpException; |
| 20 | 19 | use yii\web\Response; |
@@ -316,6 +316,9 @@ |
||
| 316 | 316 | return $result; |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | + /** |
|
| 320 | + * @param string $className |
|
| 321 | + */ |
|
| 319 | 322 | private function invalidateTags($className, $ids) |
| 320 | 323 | { |
| 321 | 324 | $tags = [ |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | -use app\backend\components\BackendController; |
|
| 6 | 5 | use Yii; |
| 7 | -use app\modules\shop\models\CategoryGroup; |
|
| 6 | +use app\backend\components\BackendController; |
|
| 8 | 7 | use app\components\SearchModel; |
| 8 | +use app\modules\shop\models\CategoryGroup; |
|
| 9 | 9 | use yii\filters\AccessControl; |
| 10 | -use yii\web\NotFoundHttpException; |
|
| 11 | 10 | use yii\helpers\Url; |
| 11 | +use yii\web\NotFoundHttpException; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * CategoryGroupController implements the CRUD actions for CategoryGroup model. |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | * Deletes an existing CategoryGroup model. |
| 108 | 108 | * If deletion is successful, the browser will be redirected to the 'index' page. |
| 109 | 109 | * @param string $id |
| 110 | - * @return mixed |
|
| 110 | + * @return \yii\web\Response |
|
| 111 | 111 | */ |
| 112 | 112 | public function actionDelete($id) |
| 113 | 113 | { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\actions\DeleteOne; |
| 6 | 7 | use app\backend\actions\MultipleDelete; |
| 7 | 8 | use app\backend\actions\UpdateEditable; |
| 8 | 9 | use app\backend\components\BackendController; |
| 9 | 10 | use app\modules\shop\models\Currency; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\filters\AccessControl; |
| 12 | 12 | use yii\helpers\Url; |
| 13 | 13 | |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\actions\DeleteOne; |
| 6 | 7 | use app\backend\actions\MultipleDelete; |
| 7 | 8 | use app\backend\components\BackendController; |
| 8 | 9 | use app\modules\shop\models\CurrencyRateProvider; |
| 9 | -use Yii; |
|
| 10 | 10 | use yii\filters\AccessControl; |
| 11 | 11 | |
| 12 | 12 | class BackendCurrencyRateProviderController extends BackendController |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | +use Yii; |
|
| 7 | +use app\backend\components\BackendController; |
|
| 6 | 8 | use app\modules\shop\models\AbstractDiscountType; |
| 7 | 9 | use app\modules\shop\models\Discount; |
| 8 | 10 | use app\modules\shop\models\DiscountType; |
| 9 | 11 | use yii\filters\AccessControl; |
| 10 | -use app\backend\components\BackendController; |
|
| 11 | -use Yii; |
|
| 12 | 12 | use yii\helpers\Url; |
| 13 | 13 | use yii\web\NotFoundHttpException; |
| 14 | 14 | |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | 7 | use app\components\SearchModel; |
| 7 | 8 | use app\modules\shop\models\Measure; |
| 8 | -use Yii; |
|
| 9 | 9 | use yii\filters\AccessControl; |
| 10 | 10 | use yii\filters\VerbFilter; |
| 11 | 11 | use yii\web\NotFoundHttpException; |