Added root object

This commit is contained in:
Pierre
2017-05-17 13:51:22 +02:00
parent 06f59e70c6
commit 09eaa2171c
2 changed files with 67 additions and 1 deletions

View File

@ -3,4 +3,20 @@
* Page initiator
*
* @author Pierre HUBERT
*/
*/
//Define the base of the project
define("PROJECT_PATH", __DIR__."/");
//Include classes
foreach(glob(PROJECT_PATH."classes/*.php") as $classFile){
require_once $classFile;
}
//Include functions
foreach(glob(PROJECT_PATH."functions/*.php") as $funcFile){
require_once $funcFile;
}
//Create root object
$cs = new CS();