PHP code example of siddthartha / yii2-angular

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

    

siddthartha / yii2-angular example snippets



use dee\angular\NgView;

/* @var $this yii\web\View */



use dee\angular\NgView;

/* @var $this yii\web\View */
/* @var $widget NgView */

...
if (!YII_ENV_TEST) {
//     configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'angular' => ['class' => 'dee\gii\generators\angular\Generator'],
        ]
    ];
}


php composer.phar