porcelanosa / yii2-site-options
Yii2 Extenstion for set site options
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.6.0
- rubaxa/fileapi: *
- vova07/yii2-imperavi-widget: ^1.2
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-04 21:47:29 UTC
README
WARNING! UNDER DEVELOPMENT
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']],