Yii2 Order Management System
Order Management System for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist thienhungho/yii2-order-management "*"
or add
"thienhungho/yii2-order-management": "*"
to the require section of your composer.json
file.
Config
Add module OrderManage to your AppConfig
file.
...
'modules' => [
...
/**
* Order Manage
*/
'order-manage' => [
'class' => 'thienhungho\OrderManagement\modules\OrderManage\OrderManage',
],
/**
* My Order
*/
'my-order' => [
'class' => 'thienhungho\OrderManagement\modules\MyOrder\MyOrder',
],
...
],
...
Migration
Run the following command in Terminal for database migration:
yii migrate/up --migrationPath=@vendor/thienhungho/yii2-order-management/migrations
Or use the namespaced migration (requires at least Yii 2.0.10):
// Add namespace to console config:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'thienhungho\OrderManagement\migrations\namespaced',
],
],
],
Then run:
yii migrate/up
Modules
OrderBase, OrderManage, MyOrder,