thienhungho/yii2-contact-management

Yii2 Contact Management

v1.0.5 2018-11-24 09:09 UTC

This package is auto-updated.

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


README

Contact 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-contact-management "*"

or add

"thienhungho/yii2-contact-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/ContactManagement/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\ContactManagement\migrations\namespaced',
        ],
    ],
],

Then run:

yii migrate/up

Config

Add module ContactManage to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Contact Manage
     */
    'contact-manage' => [
        'class' => '\thienhungho\ContactManagement\modules\ContactManage\ContactManage',
    ],
    ...
],
...

Models

ContactForm

Modules

ContactBase, ContactManage

Functions

Core

Models

Contact