private static function load($str, $arr) { self::assign($arr); if (file_exists(ROOT . 'templates/' . $str . '.tpl')) { self::$template_file = ROOT . 'templates/' . $str . '.tpl'; } else { if (file_exists(ROOT . ROUTE_MODULE . '/execute/' . $str . '.tpl')) { self::$template_file = ROOT . ROUTE_MODULE . '/execute/' . $str . '.tpl'; } else { throw new Exception('00563'); } } extract(self::$vars, EXTR_REFS); ob_start(); include self::$template_file; $page_content = ob_get_clean(); return $page_content; }