grozzzny/catalog
Composer 安装命令:
composer require grozzzny/catalog
包简介
Catalog module for Yii2
README 文档
README
This module allows to yii2
Installation guide
$ php composer.phar require grozzzny/catalog "v3.x-dev"
Run migrations
php yii migrate --migrationPath=@vendor/grozzzny/catalog/migrations
Or add following lines to your console configuration file:
'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationPath' => [ '@grozzzny/catalog/migrations', ], ], ],
'modules' => [ 'catalog' => [ 'class' => 'grozzzny\catalog\CatalogModule', ], ], 'i18n' => [ 'translations' => [ 'catalog' => [ 'class' => 'yii\i18n\PhpMessageSource', 'sourceLanguage' => 'en-US', 'basePath' => '@grozzzny/catalog/messages', ], ], ], 'container' => [ 'singletons' => [ 'grozzzny\catalog\models\Category' => ['class' => 'app\models\Category'], ], ],
Schema
Catalog with different types of data
Any level of nesting
Speed filter
Several languages
<? $i18n = json_encode([ 'select_category' => Yii::t('catalog','Select category..'), 'key' => Yii::t('catalog','Key'), 'value' => Yii::t('catalog','Value'), ... 'filter_show' => Yii::t('catalog','Show in filter'), ], JSON_UNESCAPED_UNICODE);
Element "Many to Many"
Inheritability of properties
Large selection of property types
Convenient setting options for a property with the type "select"
Easily add customizations
if ($property->settings->filter_range){ ... }
Universal validation rules
Property type "Multi category"
Property type "HTML"
Property type "Image" or "File"
Property type "Code"
统计信息
- 总下载量: 477
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-12


















