PHP code example of floor12 / yii2-module-banner

1. Go to this page and download the library: Download floor12/yii2-module-banner 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/ */

    

floor12 / yii2-module-banner example snippets

  
'modules' => [
    'modules' => [
        'banner' => [
            'class' => 'floor12\banner\Module',
        ],
        'files' => [
            'class' => 'floor12\files\Module',
        ],
    ],
    ]
    ...
  
<?= floor12\banner\widgets\BannerWidget::widget(['place_id' => 1]) 


    $this->beginBody();
    echo PopupWidget::widget(['place_id' => 1]);