2017 © Pedro Peláez
 

yii2-extension yii2-site-options

Yii2 Extenstion for set site options

image

porcelanosa/yii2-site-options

Yii2 Extenstion for set site options

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Site Options

WARNING! UNDER DEVELOPMENT, (*1)

Total Downloads Monthly Downloads License, (*2)

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., (*3)

NOTE: Before we start make sure that you have properly configured db application component., (*4)

Step 1: Download using composer

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

Step 2: Configure your application

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

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:, (*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']],

The Versions

11/12 2016

dev-master

9999999-dev https://github.com/porcelanosa/yii2-site-options

Yii2 Extenstion for set site options

  Sources   Download

MIT

The Requires

 

by Alex Porcelanosa

yii2 yii yii 2