コード例 #1
0
 /**
  * run the page
  *
  * @since ADD MVC 0.4
  */
 public function page()
 {
     header("Content-type: text/plain");
     e_hack::assert($this->can_run(), "Invalid aux script authentication key");
     ob_start();
     try {
         $this->process();
     } catch (Exception $e) {
         add::handle_exception($e);
     }
     $this->response = ob_get_clean();
     $this->handle_response();
 }
コード例 #2
0
 /**
  * run the page
  *
  * @since ADD MVC 0.6.2
  */
 public function execute()
 {
     e_hack::assert($this->can_run(), "Invalid aux script authentication key");
     # Set Content Type
     $this->content_type($this->content_type);
     ob_start();
     try {
         $this->process_data();
     } catch (Exception $e) {
         add::handle_exception($e);
     }
     $this->response = ob_get_clean();
     $this->handle_response();
 }