Commit 0194ad48a5ba7f5fa17944938a12a70c8674228c
1 parent
6813d2d0
Namespaces
Showing
14 changed files
with
30 additions
and
28 deletions
Show diff stats
composer.json
controllers/BlogArticleController.php
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | |
5 | 5 | use artweb\artbox\blog\models\BlogCategory; |
6 | 6 | use artweb\artbox\blog\models\BlogTag; |
7 | - use common\modules\product\models\Product; | |
7 | + use artweb\artbox\ecommerce\models\Product; | |
8 | 8 | use Yii; |
9 | 9 | use artweb\artbox\blog\models\BlogArticle; |
10 | 10 | use artweb\artbox\blog\models\BlogArticleSearch; | ... | ... |
models/BlogArticle.php
... | ... | @@ -2,12 +2,12 @@ |
2 | 2 | |
3 | 3 | namespace artweb\artbox\blog\models; |
4 | 4 | |
5 | - use common\behaviors\SaveImgBehavior; | |
5 | + use artweb\artbox\behaviors\SaveImgBehavior; | |
6 | 6 | use yii\behaviors\TimestampBehavior; |
7 | 7 | use yii\db\ActiveRecord; |
8 | - use common\modules\language\behaviors\LanguageBehavior; | |
9 | - use common\modules\language\models\Language; | |
10 | - use common\modules\product\models\Product; | |
8 | + use artweb\artbox\language\behaviors\LanguageBehavior; | |
9 | + use artweb\artbox\language\models\Language; | |
10 | + use artweb\artbox\ecommerce\models\Product; | |
11 | 11 | use yii\db\ActiveQuery; |
12 | 12 | use yii\web\Request; |
13 | 13 | ... | ... |
models/BlogArticleLang.php
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | |
3 | 3 | namespace artweb\artbox\blog\models; |
4 | 4 | |
5 | - use common\modules\language\models\Language; | |
5 | + use artweb\artbox\language\models\Language; | |
6 | 6 | use yii\db\ActiveRecord; |
7 | 7 | |
8 | 8 | /** |
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 | { |
37 | 37 | return [ |
38 | 38 | 'slug' => [ |
39 | - 'class' => 'common\behaviors\Slug', | |
39 | + 'class' => 'artweb\artbox\behaviors\Slug', | |
40 | 40 | ], |
41 | 41 | ]; |
42 | 42 | } | ... | ... |
models/BlogCategory.php
... | ... | @@ -3,9 +3,9 @@ |
3 | 3 | namespace artweb\artbox\blog\models; |
4 | 4 | |
5 | 5 | use yii\db\ActiveRecord; |
6 | - use common\modules\language\behaviors\LanguageBehavior; | |
7 | - use common\behaviors\SaveImgBehavior; | |
8 | - use common\modules\language\models\Language; | |
6 | + use artweb\artbox\language\behaviors\LanguageBehavior; | |
7 | + use artweb\artbox\behaviors\SaveImgBehavior; | |
8 | + use artweb\artbox\language\models\Language; | |
9 | 9 | use yii\db\ActiveQuery; |
10 | 10 | use yii\web\Request; |
11 | 11 | |
... | ... | @@ -77,7 +77,7 @@ |
77 | 77 | 'class' => LanguageBehavior::className(), |
78 | 78 | ], |
79 | 79 | 'Slug' => [ |
80 | - 'class' => 'common\behaviors\Slug', | |
80 | + 'class' => 'artweb\artbox\behaviors\Slug', | |
81 | 81 | ], |
82 | 82 | ]; |
83 | 83 | } | ... | ... |
models/BlogCategoryLang.php
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | namespace artweb\artbox\blog\models; |
4 | 4 | |
5 | 5 | use yii\db\ActiveRecord; |
6 | - use common\modules\language\models\Language; | |
6 | + use artweb\artbox\language\models\Language; | |
7 | 7 | |
8 | 8 | /** |
9 | 9 | * This is the model class for table "blog_category_lang". |
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | { |
36 | 36 | return [ |
37 | 37 | 'slug' => [ |
38 | - 'class' => 'common\behaviors\Slug', | |
38 | + 'class' => 'artweb\artbox\behaviors\Slug', | |
39 | 39 | ], |
40 | 40 | ]; |
41 | 41 | } | ... | ... |
models/BlogTag.php
... | ... | @@ -3,8 +3,8 @@ |
3 | 3 | namespace artweb\artbox\blog\models; |
4 | 4 | |
5 | 5 | use yii\db\ActiveRecord; |
6 | - use common\modules\language\behaviors\LanguageBehavior; | |
7 | - use common\modules\language\models\Language; | |
6 | + use artweb\artbox\language\behaviors\LanguageBehavior; | |
7 | + use artweb\artbox\language\models\Language; | |
8 | 8 | use yii\db\ActiveQuery; |
9 | 9 | use yii\web\Request; |
10 | 10 | ... | ... |
models/BlogTagLang.php
views/blog-article/_form.php
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 | use yii\helpers\Html; |
9 | 9 | use yii\web\View; |
10 | 10 | use yii\widgets\ActiveForm; |
11 | - use common\modules\language\widgets\LanguageForm; | |
11 | + use artweb\artbox\language\widgets\LanguageForm; | |
12 | 12 | use yii\web\JsExpression; |
13 | 13 | |
14 | 14 | /** |
... | ... | @@ -92,7 +92,7 @@ |
92 | 92 | 'gif', |
93 | 93 | 'png', |
94 | 94 | ], |
95 | - 'initialPreview' => !empty( $model->imageUrl ) ? \common\components\artboximage\ArtboxImageHelper::getImage( | |
95 | + 'initialPreview' => !empty( $model->imageUrl ) ? \artweb\artbox\components\artboximage\ArtboxImageHelper::getImage( | |
96 | 96 | $model->imageUrl, |
97 | 97 | 'list' |
98 | 98 | ) : '', | ... | ... |
views/blog-article/_form_language.php
views/blog-category/_form.php
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | use yii\helpers\Html; |
7 | 7 | use yii\web\View; |
8 | 8 | use yii\widgets\ActiveForm; |
9 | - use common\modules\language\widgets\LanguageForm; | |
9 | + use artweb\artbox\language\widgets\LanguageForm; | |
10 | 10 | |
11 | 11 | /** |
12 | 12 | * @var View $this |
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | 'gif', |
52 | 52 | 'png', |
53 | 53 | ], |
54 | - 'initialPreview' => !empty( $model->imageUrl ) ? \common\components\artboximage\ArtboxImageHelper::getImage( | |
54 | + 'initialPreview' => !empty( $model->imageUrl ) ? \artweb\artbox\components\artboximage\ArtboxImageHelper::getImage( | |
55 | 55 | $model->imageUrl, |
56 | 56 | 'list' |
57 | 57 | ) : '', | ... | ... |
views/blog-category/_form_language.php
views/blog-tag/_form.php
views/blog-tag/_form_language.php