コード例 #1
0
ファイル: error.php プロジェクト: erxn/siemas
 /**
  * ID: Kirimkan pesan error ke halaman error template
  * EN: Send error message to error template file
  *
  * @param string $file
  */
 public function error_template_view($data = array())
 {
     $defaults = array('error_code' => 404, 'header_page_title' => 'Page Not Found - Error 404', 'template_file' => '40x', 'content' => '<h1>Error: Page not Found!</h1>');
     $data = array_merge($defaults, $data);
     extract($data, EXTR_SKIP);
     Library_tools::set_status_header($error_code);
     $path = APPLICATION . 'view/error_templates/' . $template_file . '.php';
     include_once $path;
     exit;
 }
コード例 #2
0
ファイル: rest.php プロジェクト: erxn/siemas
 public function set_response_header($code = 200)
 {
     Library_tools::set_status_header($code);
 }