public function __construct($path)
 {
     $this->gobe = Gobe::getInstance();
     $this->request = $this->gobe->getRequest();
     $this->modules = $this->gobe->getModules();
     $this->scripts = $this->gobe->getScripts();
     $this->parser = $this->gobe->getParser();
     $this->path = $path;
 }
Exemple #2
0
 function set_layout($layout)
 {
     Gobe::getInstance()->setLayout($layout);
 }
Exemple #3
0
define('GOBE_PATH_CONFIG', $_SERVER['DOCUMENT_ROOT'] . '/../config/');
// Load config and custom routes
require_once GOBE_PATH_CONFIG . "boot.php";
// Load Gobe classes
require_once GOBE_PATH_ENGINE . "Router.php";
require_once GOBE_PATH_ENGINE . "Route.php";
require_once GOBE_PATH_ENGINE . "Request.php";
require_once GOBE_PATH_ENGINE . "Modules.php";
require_once GOBE_PATH_ENGINE . "Controller.php";
require_once GOBE_PATH_ENGINE . "Scripts.php";
require_once GOBE_PATH_ENGINE . "Parser.php";
require_once GOBE_PATH_ENGINE . "Gobe.php";
require_once GOBE_PATH_CONFIG . "routes.php";
if (GOBE_LEGACY_SUPPORT) {
    require_once GOBE_PATH_ENGINE . "legacy.php";
}
// Instantiate GOBE
$gobe = Gobe::getInstance();
// Configure the request
$gobe->setRequest();
// Load GOBE_MODULES_DEFAULT if it is not empty
if (GOBE_MODULES_DEFAULT != "") {
    $gobe->getModules()->register(preg_split("`\\s*,\\s*`", GOBE_MODULES_DEFAULT));
}
// Configure the parser
$gobe->setLayout();
$gobe->setView();
// Load user scripts
$gobe->loadScripts();
// Load layout and parse template
echo $gobe->loadParser();
Exemple #4
0
 private function defaultIncludeHelper($file)
 {
     Gobe::getInstance()->scriptsIncludeHelper($file);
 }