2017 © Pedro Peláez
 

yii2-extension yii2-mconfig

Yii2 MConfig Module

image

kovalin/yii2-mconfig

Yii2 MConfig Module

  • Friday, July 20, 2018
  • by kovalin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 MConfig Module

Easy Installation

Install with composer

To install with Composer, simply require the latest version of this package., (*1)

composer require kovalin/yii2-mconfig "dev-master"

Download and install

Download an archive of MConfig and extract module files it into the /modules/mconfig/ directory your Yii application., (*2)

  • You can download zip archive https://codeload.github.com/kovalin/yii2-mconfig/zip/master

Install with git

From the command line, switch to the /modules directory your Yii application and run the following commands:, (*3)

git clone https://github.com/kovalin/yii2-mconfig.git
mv yii2-mconfig mconfig

Configuration

Database Migrations, (*4)

Before using Comments Widget, we'll also need to prepare the database., (*5)

php yii migrate --migrationPath=modules/mconfig/migrations

Config your Yii app, (*6)

Once the extension is installed, simply modify your application configuration as follows:, (*7)

return [
     'components' => [
        'MConfig' => [
            'class' => 'app\modules\mconfig\components\MConfig'
        ],
    'modules' => [
        'mconfig' => [
            'class' => 'app\modules\mconfig\Module',
        ]
    ],
];

Usage

You can use this code in any place of your app., (*8)

Yii::$app->MConfig->get('adminEmail');

The Versions

20/07 2018

dev-master

9999999-dev

Yii2 MConfig Module

  Sources   Download

MIT

by Anton Kovalin

yii2 yii2-module yii2-config-module yii2-mconfig-module