PHP code example of besnovatyj / yii2-cms-blocks

1. Go to this page and download the library: Download besnovatyj/yii2-cms-blocks library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

besnovatyj / yii2-cms-blocks example snippets


use Besnovatyj\Blocks\widgets\BlockArea;

 $content = BlockArea::widget(['area' => 'popup-bar']); 

return [
    'popup-bar' => ['label' => 'Полоса над шапкой', 'hint' => 'Текст объявления и кнопка-ссылка', 'sort' => 10],
];