update docs and modular ob_start() mode
This commit is contained in:
parent
8b7c766a1c
commit
014bc1edd9
17 changed files with 202 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ class Modular
|
|||
|
||||
public function load($type = "symfony")
|
||||
{
|
||||
ob_start();
|
||||
|
||||
switch ($type) {
|
||||
case "gitlist":
|
||||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . DIRECTORY_SEPARATOR . "index.php";
|
||||
|
|
@ -115,5 +117,10 @@ class Modular
|
|||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
|
||||
break;
|
||||
}
|
||||
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue