function buildPage($controllers) { $tmp = Globals::getPageInfo(); if ($controllers != null) { if (is_array($controllers)) { foreach ($controllers as $controller) { include $tmp[1] . (string) $controller . '_controller.php'; } } elseif (is_string($controllers)) { include $tmp[1] . (string) $controllers . '_controller.php'; } } }
public function buildPage() { $tmp = Globals::getPageInfo(); //echo "Cool".$this->controller; if ($this->controller != null) { if (is_array($this->controller)) { foreach ($this->controller as $controller) { $_SERVER . (include $tmp[1] . (string) $controller . '_controller.php'); echo $tmp[1] . (string) $controller . '_controller.php'; } } elseif (is_string($this->controller)) { $_SERVER . (include $tmp[1] . (string) $this->controllers . '_controller.php'); } } }
<?php require_once '../blog/classes/clsGlobals.php'; require_once '../blog/classes/clsDatabase.php'; require_once '../blog/classes/clsLayout.php'; $globs = Globals::getPageInfo();