diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index 01533b3..dacecae 100644 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -82,11 +82,12 @@ class Category extends \yii\db\ActiveRecord [['name'], 'required'], [['parent_id', 'depth', 'category_name_id', 'product_unit_id'], 'integer'], [['path', 'meta_desc', 'seo_text'], 'string'], - [['image', 'meta_title'], 'string', 'max' => 255], + [['meta_title'], 'string', 'max' => 255], [['meta_robots'], 'string', 'max' => 50], [['alias', 'name'], 'string', 'max' => 250], [['populary'], 'boolean'], [['group_to_category'], 'safe'], + // [['image'], 'file', 'skipOnEmpty' => false, 'extensions' => 'png, jpg, gif'], // [['product_unit_id'], 'exist', 'skipOnError' => true, 'targetClass' => ProductUnit::className(), 'targetAttribute' => ['product_unit_id' => 'product_unit_id']], ]; } diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php index 67bf373..2ec9093 100644 --- a/frontend/views/catalog/products.php +++ b/frontend/views/catalog/products.php @@ -247,7 +247,7 @@ $this->params['breadcrumbs'][] = $category->name; totalCount > $pages->pageSize) :?> - +
Страница: -- libgit2 0.21.4