$file = $line = ''; if(headers_sent($file, $line)) { throw new AgaviException('Headers already sent, output started in "' . $file . '" on line "' . $line . '"'); } else { unset($file, $line); } $this->setHttpHeader('Content-Length', 0); } } $this->sendHttpResponseHeaders($outputType); if(!$this->redirect || $this->getParameter('send_redirect_content', false)) { $this->sendContent(); } $response->merge($this->response); if($this->getParameter('send_response')) { $response->send(); } return $response;// +---------------------------------------------------------------------------+// | Call the controller's dispatch method on the default context |// +---------------------------------------------------------------------------+AgaviContext::getInstance('web')->getController()->dispatch();