profitcode / yii2-blocks
Yii2 blocks to insert in templates or pages
Package info
github.com/cheaterBY/yii2-blocks
Type:yii2-extension
pkg:composer/profitcode/yii2-blocks
dev-master
2017-10-27 09:40 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2026-03-29 10:39:36 UTC
README
Yii2 blocks to insert in templates or pages
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist profitcode/yii2-blocks "*"
or add
"profitcode/yii2-blocks": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
with block id
<?= \profitcode\blocks\models\Block::render(1); ?>
or block system name
<?= \profitcode\blocks\models\Block::render('block_1'); ?>