mirror of https://github.com/myphpfw/myphpfw.git
better modules, started parsing URL
This commit is contained in:
parent
1e5ac59205
commit
878209663b
|
@ -4,3 +4,6 @@
|
|||
[submodule "modules/database"]
|
||||
path = modules/database
|
||||
url = git@git.bjphoster.com:myphpfw/database.git
|
||||
[submodule "modules/config"]
|
||||
path = modules/config
|
||||
url = git@git.bjphoster.com:myphpfw/config.git
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
$global_config = [
|
||||
"db" => [
|
||||
"host" => "localhost",
|
||||
"port" => 3306,
|
||||
"user" => "myphpframework",
|
||||
"pass" => "Passw0rd!",
|
||||
"name" => "myphpframework",
|
||||
"prefix" => "mpf_",
|
||||
],
|
||||
];
|
|
@ -1,3 +1,4 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
$load_modules = [
|
||||
];
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
require_once(__DIR__."/../modules.php");
|
||||
foreach($load_modules as $module) {
|
||||
require_once(__DIR__."/".$module."/Object.php");
|
||||
$loaded_modules = [];
|
||||
foreach($load_modules as $module => $required) {
|
||||
$required ? require_once(__DIR__."/".$module."/Object.php") : include_once(__DIR__."/".$module."/Object.php");
|
||||
array_push($loaded_modules, $module);
|
||||
}
|
||||
unset($load_modules);
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
require_once(__DIR__."/../modules/load_modules.php");
|
||||
$parser = new url_parser();
|
||||
$parser->parse();
|
||||
|
|
Loading…
Reference in New Issue