WARNING! UNDER DEVELOPMENT
This document will guide you through the process of installing yii2-site-options using composer. Installation is a quick and easy several step process.
NOTE: Before we start make sure that you have properly configured db application component.
Add yii2-site-options to the require section of your composer.json file:
{
"require": {
"porcelanosa/yii2-site-options": "dev-master"
}
}
And run following command to download extension using composer:
$ php composer.phar update
Add options module to both web and console config files as follows:
...
'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:
$ php yii migrate/up --migrationPath=@vendor/porcelanosa/yii2-site-options/migrations
Menu items
['label' => Yii::t('app', 'ADMIN_NAV_STATUS_TYPES'), 'url' => ['/siteOptions/optiontypes/index']],
['label' => Yii::t('app', 'ADMIN_NAV_OPTIONS_LIST'), 'url' => ['/siteOptions/index']],