dev-master
9999999-dev https://github.com/porcelanosa/yii2-site-optionsYii2 Extenstion for set site options
MIT
The Requires
by Alex Porcelanosa
yii2 yii yii 2
Wallogit.com
2017 © Pedro Peláez
Yii2 Extenstion for set site options
WARNING! UNDER DEVELOPMENT, (*1)
This document will guide you through the process of installing yii2-site-options using composer. Installation is a quick and easy several step process., (*3)
NOTE: Before we start make sure that you have properly configured db application component., (*4)
Add yii2-site-options to the require section of your composer.json file:, (*5)
{
"require": {
"porcelanosa/yii2-site-options": "dev-master"
}
}
And run following command to download extension using composer:, (*6)
$ php composer.phar update
Add options module to both web and console config files as follows:, (*7)
...
'modules' => [
...
'siteOptions' => [
'class' => 'porcelanosa\yii2siteoptions\Module',
'layout' => '@app/modules/admin/views/layouts/main',
],
...
],
...
After you downloaded and configured yii2-site-options, the last thing you need to do is updating your database schema by applying the migration:, (*8)
$ php yii migrate/up --migrationPath=@vendor/porcelanosa/yii2-site-options/migrations
Menu items, (*9)
['label' => Yii::t('app', 'ADMIN_NAV_STATUS_TYPES'), 'url' => ['/siteOptions/optiontypes/index']], ['label' => Yii::t('app', 'ADMIN_NAV_OPTIONS_LIST'), 'url' => ['/siteOptions/index']],
Yii2 Extenstion for set site options
MIT
yii2 yii yii 2