2017 © Pedro Peláez
 

library yii2-slider-module

Slideshow module for Yii2-start

image

nill/yii2-slider-module

Slideshow module for Yii2-start

  • Wednesday, November 8, 2017
  • by Mefistophell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2-Start module Slider

Slideshow module for Yii2-Start application., (*1)

Requirements

This module is used with Yii2-Start application yii2-start., (*2)

Installation

Install via Composer

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require nill/yii2-slider-module "dev-master"

or add, (*5)

"nill/yii2-slider-module": "dev-master"

to the require section of your composer.json file., (*6)

Install from an Archive File

Download and extract the zip-file into the folder with your project, (*7)

/my/path/to/yii2-start/vendor/nill/yii2_slider_module

Configuration

  • Add module to [backend] config section:
'modules' => [
    'slider' => [
        'class' => 'nill\slider\Module'
    ]
]
  • Add alias to "common\config\aliases.php":
Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend');
  • Add module to extensions "vendor\yiisoft\extensions.php":
'nill/slider' => 
    array (
        'name' => 'nill/yii2-slider-module',
        'version' => '0.1.0.0',
        'alias' => 
        array (
            '@nill/slider' => $vendorDir . '/nill/yii2-slider-module',
    ),
    'bootstrap' => 'nill\\slider\\Bootstrap',
), 
  • Create a new table in your database from file: yii2_start_slider.sql

OR: Apply migration with console commands:, (*8)

php yii migrate --migrationPath=@nill/slider/migrations, (*9)

  • RBAC settings: For usage modules create Role "administrateSlider"
http://my.domain/backend/rbac/permissions/index/

You can also create other roles and change their behavior in the controller module, (*10)

The Versions

08/11 2017

dev-master

9999999-dev

Slideshow module for Yii2-start

  Sources   Download

by Nill Mefistophell