public function send() { parent::send(); if (ob_get_level()) { ob_clean(); } $this->sendHeaders(); print $this->content; }
/** * */ 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; }
public function send() { parent::send(); print json_encode($this->data); }