Skip to content

thienhungho/yii2-block-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Block Management System

Block Management System for Yii2

Installation

This is just an example, memorible moment. The source code may not work for known reasons. This source code include against loss license feature.

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist thienhungho/yii2-block-management "*"

or add

"thienhungho/yii2-block-management": "*"

to the require section of your composer.json file.

Migration

Run the following command in Terminal for database migration:

yii migrate/up --migrationPath=@vendor/thienhungho/Block/migrations

Or use the namespaced migration (requires at least Yii 2.0.10):

// Add namespace to console config:
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'thienhungho\Block\migrations\namespaced',
        ],
    ],
],

Then run:

yii migrate/up

Config

Add module BlockManage to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Block Manage
     */
    'block-manage' => [
        'class' => 'thienhungho\Block\modules\BlockManage\BlockManage',
    ],
    ...
],
...

Modules

BlockBase, BlockManage

Functions

Core

Models

Block

About

Yii2 Block Management

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages