Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //G:\vm\app\web\index.php
- <?php
- // comment out the following two lines when deployed to production
- defined('YII_DEBUG') or define('YII_DEBUG', true);
- defined('YII_ENV') or define('YII_ENV', 'dev');
- require __DIR__ . '/../vendor/autoload.php';
- require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
- $config = require __DIR__ . '/../config/web.php';
- (new yii\web\Application($config))->run();
- //G:\vm\app\config\web.php
- if (YII_ENV_DEV) {
- // configuration adjustments for 'dev' environment
- $config['bootstrap'][] = 'debug';
- $config['modules']['debug'] = [
- 'class' => 'yii\debug\Module',
- // uncomment the following to add your IP if you are not connecting from localhost.
- 'allowedIPs' => ['*'],
- ];
- $config['bootstrap'][] = 'gii';
- $config['modules']['gii'] = [
- 'class' => 'yii\gii\Module',
- // uncomment the following to add your IP if you are not connecting from localhost.
- 'allowedIPs' => ['*'],
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement