-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
25 lines (19 loc) · 842 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// first let's load our configuration file
$settings_file = dirname(__FILE__) . DIRECTORY_SEPARATOR .
'protected' . DIRECTORY_SEPARATOR .
'mehesz' . DIRECTORY_SEPARATOR . 'settings.php';
if( ! file_exists( $settings_file ) )
{
die( 'Missing configuration file, expected here: ' . $settings_file );
}
require_once $settings_file;
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii-1.1.3.r2247/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', MEHESZ_YII_DEBUG );
// 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);
Yii::createWebApplication($config)->run();