示例#1
0
 public function send()
 {
     parent::send();
     if (ob_get_level()) {
         ob_clean();
     }
     $this->sendHeaders();
     print $this->content;
 }
示例#2
0
 /**
  *
  */
 protected function send()
 {
     //
     if (empty($this->response)) {
         //
         $isViewNotRendered = !empty($this->view) && !$this->view->isRendered();
         //
         if ($isViewNotRendered) {
             //
             $this->getDefaultHTTPResponse();
             //
             $this->response->setData($this->view->render());
         }
     }
     if (!empty($this->response)) {
         $this->response->send();
     }
     return $this->response;
 }
示例#3
0
 public function send()
 {
     parent::send();
     print json_encode($this->data);
 }