muhammads92/yii2-block

Yii2 module for HTML blocks editing

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

dev-master 2017-09-12 07:21 UTC

This package is auto-updated.

Last update: 2024-04-19 20:15:48 UTC


README

Yii2 module for HTML blocks editing

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"muhammads92/yii2-block": "*"

to the require section of your composer.json file.

After running

php composer.phar update

run

yii migrate --migrationPath=@vendor/muhammads92/yii2-block/migrations

After that change your main configuration file `config/web.php`

<?php return [
    ...
    'modules' => [
        ...
        'block' => [
            'class' => 'muhammads92\block\Module',
        ],
        ...
    ],
    ...
];

Unzip ajexFileManager.zip inner to root folder (its for basic-app)

Usage

Once the extension is installed, simply use it in your code by :

<?= \muhammads92\block\widgets\Block::widget(['code' => 'about']); ?>