Exemplo n.º 1
0
 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();
             }
         }
     }
 }
Exemplo n.º 2
0
 function initialize()
 {
     if ($this->hasContentFile()) {
         require_once "../content/{$this->content_file}.php";
         initialize_page();
     }
 }