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