Added admin module
This commit is contained in:
parent
22b90ea1f6
commit
fd88fff9d2
90 changed files with 13954 additions and 19 deletions
16
index.php
16
index.php
|
|
@ -5,6 +5,22 @@ use PhangoApp\PhaUtils\Utils;
|
|||
include('libraries/Utils.php');
|
||||
include('libraries/Routes.php');
|
||||
|
||||
spl_autoload_register(function ($class_name) {
|
||||
|
||||
//include($nombre_clase . '.php';
|
||||
//echo $class_name;
|
||||
switch($class_name) {
|
||||
|
||||
case 'PhangoApp\PDO\MySQL':
|
||||
|
||||
include('./libraries/PDO.php');
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if(is_file('vendor/autoload.php')) {
|
||||
|
||||
include('vendor/autoload.php');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue