porcelanosa/yii2-site-options

Yii2 Extenstion for set site options

dev-master 2016-12-11 08:28 UTC

This package is not auto-updated.

Last update: 2024-04-27 18:04:19 UTC


README

WARNING! UNDER DEVELOPMENT

Total Downloads Monthly Downloads License

Installation

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.

Step 1: Download using composer

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

Step 2: Configure your application

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',
    ],
    ...
],
...

Step 3: Updating database schema

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']],