summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authortzur <tzur@ccwn.org>2012-04-15 15:30:09 +0200
committertzur <tzur@ccwn.org>2012-04-15 15:30:09 +0200
commit5b2095abddf9d0596a7715879357e8d9a3b786b2 (patch)
tree0c2b6fdc1484b697b1a3740582a906fb51c1d64f /index.php
Initial version
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..fdcf65d
--- /dev/null
+++ b/index.php
@@ -0,0 +1,13 @@
+<?php
+
+// 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);
+Yii::createWebApplication($config)->run();