mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Added root object
This commit is contained in:
18
init.php
18
init.php
@ -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();
|
Reference in New Issue
Block a user