chinese-journal/yii/index.php

26 lines
681 B
PHP
Raw Normal View History

2014-11-21 08:26:20 +00:00
<?php
2014-11-22 13:14:22 +00:00
//ini_set('error_reporting', E_ALL);
//ini_set('display_errors', 'On'); //On or Off
2014-11-21 08:26:20 +00:00
// change the following paths if necessary
2014-11-22 13:14:22 +00:00
if (strncasecmp(PHP_OS, 'WIN', 3) == 0)
{
$yii=dirname(__FILE__).'/../../../yii1.1.15/framework/yii.php';
}
else
{
$yii=dirname(__FILE__).'/../../yii1.1.15/framework/yii.php';
}
2014-11-21 08:26:20 +00:00
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
2014-11-22 13:14:22 +00:00
//defined('YII_DEBUG') or define('YII_DEBUG',true);
2014-11-21 08:26:20 +00:00
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
2014-11-22 13:14:22 +00:00
2014-11-21 08:26:20 +00:00
Yii::createWebApplication($config)->run();