tejrajs/setting

Yii2 Framework Dynamic Setting - Development package

Installs: 119

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.1 2015-07-22 20:37 UTC

This package is auto-updated.

Last update: 2024-04-14 15:26:52 UTC


README

Yii2 Framework Dynamic Setting - Development package

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist tejrajs/setting "dev-master"

or add

"tejrajs/setting": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

Migration

Migration run

yii migrate --migrationPath=@tejrajs/setting/migrations

Config backend modules in backend/config/main.php

    //'defaultRoute' => 'setting', //set setting as default route optional
    'modules' => [
        'setting' => [
    		'class' => 'tejrajs\setting\Module',
    		'controllerNamespace' => 'tejrajs\setting\controllers'
    	],
    ],

Access Url

  1. backend : http://you-domain/backend/web/setting

To Use Mail In common/config/main.php

'components' => [
	'mail' => 'tejrajs\setting\components\Email',
],