PHP code example of zabachok / yii2-vega

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

    

zabachok / yii2-vega example snippets


'modules' => [
    ...
    'vega'     => [
        'class'     => 'zabachok\vega\Module',
    ],
]

    echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-left'],
        'items' => [
        ...
            [
                'label' => 'Tasks',
                'items' => [
                    ['label' => 'Projects', 'url' => ['/vega/project/index']],
                    ['label' => 'Tasks', 'url' => ['/vega/task/index']],
                ],
            ]
        ],
    ]);

php composer.phar