tejrajs / setting
Yii2 Framework Dynamic Setting - Development package
Installs: 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-swiftmailer: *
This package is auto-updated.
Last update: 2025-01-14 17:03:18 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
- backend : http://you-domain/backend/web/setting
To Use Mail In common/config/main.php
'components' => [ 'mail' => 'tejrajs\setting\components\Email', ],