Commit b2d7dc98556a9541977cb559a59cf7cd45a33b44

Authored by Administrator
1 parent 5a0c03c7

big commti

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
common/modules/product/models/Category.php
@@ -39,6 +39,7 @@ use common\behaviors\Slug; @@ -39,6 +39,7 @@ use common\behaviors\Slug;
39 class Category extends \yii\db\ActiveRecord 39 class Category extends \yii\db\ActiveRecord
40 { 40 {
41 public $imageUpload; 41 public $imageUpload;
  42 + public $categories;
42 43
43 public function behaviors() 44 public function behaviors()
44 { 45 {
@@ -79,7 +80,7 @@ class Category extends \yii\db\ActiveRecord @@ -79,7 +80,7 @@ class Category extends \yii\db\ActiveRecord
79 [['meta_robots'], 'string', 'max' => 50], 80 [['meta_robots'], 'string', 'max' => 50],
80 [['alias', 'name'], 'string', 'max' => 250], 81 [['alias', 'name'], 'string', 'max' => 250],
81 [['populary'], 'boolean'], 82 [['populary'], 'boolean'],
82 - [['imageUpload'], 'safe'], 83 + [['imageUpload','categories'], 'safe'],
83 [['imageUpload'], 'file', 'extensions' => 'jpg, gif, png'], 84 [['imageUpload'], 'file', 'extensions' => 'jpg, gif, png'],
84 ]; 85 ];
85 } 86 }