Пример #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);
 }