update final for sandframework site-web with git-folder download

This commit is contained in:
Emmanuel ROY 2021-01-06 20:28:30 +01:00 committed by Emmanuel ROY
commit 2f89c46410
2222 changed files with 276304 additions and 130 deletions

View file

@ -15,6 +15,8 @@ class Modular
$this->app = $appName;
switch ($type) {
case "gitlist":
break;
case "symfony":
break;
case "wordpress":
@ -91,9 +93,12 @@ class Modular
public function load($type = "symfony")
{
switch ($type) {
case "gitlist":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . DIRECTORY_SEPARATOR . "index.php";
break;
case "symfony":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . DIRECTORY_SEPARATOR . "public" . DIRECTORY_SEPARATOR . "index.php";
break;
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . DIRECTORY_SEPARATOR . "public" . DIRECTORY_SEPARATOR . "index.php";
break;
case "wordpress":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
break;