function error($e) { $text = "ERROR<br><br>"; if ($e == "fileNotFound") { $text .= "テンプレートファイルが見つかりません。<br><br>"; } $this->tempData = array("{%text}" => $text); $html_temp = "{%text}"; $html = Mobile::tempReplace($html_temp, $this->tempData); Mobile::output($html); //HTMLを出力 exit; }