thienhungho/yii2-product-management

Yii2 Product Management

v1.1.1 2019-08-23 21:48 UTC

This package is auto-updated.

Last update: 2024-04-30 00:38:56 UTC


README

Product Management System for Yii2

Installation

This is just an example, memorible moment. The source code may not work for known reasons. This source code include against loss license feature.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist thienhungho/yii2-product-management "*"

or add

"thienhungho/yii2-product-management": "*"

to the require section of your composer.json file.

Migration

Run the following command in Terminal for database migration:

yii migrate/up --migrationPath=@vendor/thienhungho/ProductManagement/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\ProductManagement\migrations\namespaced',
        ],
    ],
],

Then run:

yii migrate/up

Config

Add module ProductManage to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Product Manage
     */
    'product-manage' => [
        'class' => 'thienhungho\ProductManagement\modules\ProductManage\ProductManage',
    ],
    ...
],
...

Modules

ProductBase, ProductManage, ProductManageForCustomer

Functions

Core

Constant

Core