function initialize() { $route = $GLOBALS['ROUTES'][$this->path]; if (isset($route)) { $this->template = $route["template"]; if ($this->hasContentFile()) { require_once pagePath($route["file"]); if (function_exists('initialize_page')) { initialize_page(); } } } }
function initialize() { if ($this->hasContentFile()) { require_once "../content/{$this->content_file}.php"; initialize_page(); } }