コード例 #1
0
ファイル: admin_page.php プロジェクト: highchair/hcd-trunk
 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();
             }
         }
     }
 }
コード例 #2
0
ファイル: page.php プロジェクト: highchair/hcd-trunk
 function initialize()
 {
     if ($this->hasContentFile()) {
         require_once "../content/{$this->content_file}.php";
         initialize_page();
     }
 }