|
@@ -0,0 +1,34 @@
|
|
|
|
+<?php
|
|
|
|
+
|
|
|
|
+include './protected/config/common.conf.php';
|
|
|
|
+include './protected/config/routes.conf.php';
|
|
|
|
+include './protected/config/db.conf.php';
|
|
|
|
+
|
|
|
|
+#Just include this for production mode
|
|
|
|
+//include $config['BASE_PATH'].'deployment/deploy.php';
|
|
|
|
+include $config['BASE_PATH'].'Doo.php';
|
|
|
|
+include $config['BASE_PATH'].'app/DooConfig.php';
|
|
|
|
+//echo $config['BASE_PATH'].'Doo.php';die;
|
|
|
|
+# Uncomment for auto loading the framework classes.
|
|
|
|
+//spl_autoload_register('Doo::autoload');
|
|
|
|
+
|
|
|
|
+Doo::conf()->set($config);
|
|
|
|
+
|
|
|
|
+# remove this if you wish to see the normal PHP error view.
|
|
|
|
+include $config['BASE_PATH'].'diagnostic/debug.php';
|
|
|
|
+
|
|
|
|
+# database usage
|
|
|
|
+//Doo::useDbReplicate(); #for db replication master-slave usage
|
|
|
|
+//Doo::db()->setMap($dbmap);
|
|
|
|
+//Doo::db()->setDb($dbconfig, $config['APP_MODE']);
|
|
|
|
+//Doo::db()->sql_tracking = true; #for debugging/profiling purpose
|
|
|
|
+
|
|
|
|
+Doo::app()->route = $route;
|
|
|
|
+Doo::db()->setDb($dbconfig,'dev');
|
|
|
|
+# Uncomment for DB profiling
|
|
|
|
+//Doo::logger()->beginDbProfile('doowebsite');
|
|
|
|
+Doo::app()->run();
|
|
|
|
+//Doo::logger()->endDbProfile('doowebsite');
|
|
|
|
+//Doo::logger()->rotateFile(20);
|
|
|
|
+//Doo::logger()->writeDbProfiles();
|
|
|
|
+?>
|