Example #1
0
File: App.php Project: pagon/core
 /**
  * Flush output
  */
 public function flush()
 {
     // Send headers
     if (!$this->injectors['cli']) {
         $this->output->sendHeader();
     }
     // Send
     echo $this->output->body();
     // Clear
     $this->output->clear();
 }
Example #2
0
 /**
  * Flush output
  */
 public function flush()
 {
     // Send headers
     if (!$this->injectors['cli']) {
         $this->output->sendHeader();
     }
     // Send
     echo $this->output->body();
     // Shutdown the output buffer
     $this->injectors['buffer'] && ob_get_level() && ob_end_flush();
     // Clear
     $this->output->clear();
 }