PHP code example of vov / yii2-announcement

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

    

vov / yii2-announcement example snippets


php composer.phar 

    'modules' => [
        'announcement' => [
            'controllerNamespace' => 'vov\announcement\backend\controllers',
        ],
    ],

   <?= \vov\announcement\widgets\Announcement::widget([
       'perPage' => 5,
   ]); 

	$ yii message vendor/vov/yii2-announcement/messages/config.php