Browse Source

bootstrap

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
5ab4b06b86
  1. 10
      framework/console/create/default/index.php

10
framework/console/create/default/index.php

@ -1,8 +1,10 @@
<?php
define('YII_DEBUG', true);
// change the following paths if necessary
$yii = __DIR__.'/../framework/yii.php';
$config=__DIR__.'/protected/config/main.php';
require $yii;
$config = require dirname(__DIR__).'/protected/config/main.php';
require_once($yii);
Yii::createWebApplication($config)->run();
$basePath = dirname(__DIR__).'/protected';
$app = new \yii\web\Application('webapp', $basePath, $config);
$app->run();
Loading…
Cancel
Save