profitcode/yii2-blocks

Yii2 blocks to insert in templates or pages

Installs: 122

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2017-10-27 09:40 UTC

This package is not auto-updated.

Last update: 2025-06-22 06:46:10 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'); ?>