forked from yincart/basic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
20 lines (16 loc) · 711 Bytes
/
index.php
File metadata and controls
20 lines (16 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
date_default_timezone_set('Asia/Shanghai');
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
// change the following paths if necessary
$yii=dirname(__FILE__).'/../../yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// 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);
$local=require('./protected/config/main-local.php');
$base=require('./protected/config/main.php');
$config=CMap::mergeArray($base, $local);
Yii::createWebApplication($config);
Yii::app()->run();