tomaivanovtomov/yii2-order
Composer 安装命令:
composer require tomaivanovtomov/yii2-order
包简介
README 文档
README
Installation
composer require tomaivanovtomov/yii2-order "1.0.6"
Configuration
Add the Module class to `config.php`:'modules' => [ .... 'orders' => [ 'class' => 'tomaivanovtomov\order\Module', ], .... ],
Add migrations
Migrate tablesphp yii migrate/up --migrationPath=@vendor/tomaivanovtomov/yii2-order/migrations
Register assets
Register order assets on top of your `layout\main.php`\tomaivanovtomov\order\OrderAssets::register($this);
Image path is set to www.example.com/frontend/web .
Usage
CRUDs and index action:
orders/order/index orders/currency/index orders/payment-type/index orders/status/index
Multilingual part
Copy these line in `params.php`:'language-information' => [ 'BG' => [ 'title' => 'Български', 'extension' => 'bg', ], 'EN' => [ 'title' => 'English', 'extension' => 'en', ], ], 'languageDefault' => 'bg'
This portion of code is linked with the multilingual model functionality. You can override the model and adapt it to your needs.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-25