wolfguard / yii2-block
Yii2 module for HTML blocks editing
Installs: 546
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- trntv/yii2-aceeditor: 2.0
- yiisoft/yii2: ~2.0
This package is not auto-updated.
Last update: 2024-12-21 17:41:51 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 wolfguard/yii2-block "*"
or add
"wolfguard/yii2-block": "*"
to the require section of your composer.json
file.
After running
php composer.phar update
run
yii migrate --migrationPath=@vendor/wolfguard/yii2-block/migrations
After that change your main configuration file config/web.php
<?php return [ ... 'modules' => [ ... 'block' => [ 'class' => 'wolfguard\block\Module', ], ... ], ... ];
Usage
Once the extension is installed, simply use it in your code by :
<?= \wolfguard\block\widgets\Block::widget(['code' => 'about']); ?>