summaryrefslogtreecommitdiff
path: root/framework/Web/THttpResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/THttpResponse.php')
-rw-r--r--framework/Web/THttpResponse.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index 1607b9d5..3da9a5d5 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -79,7 +79,6 @@ class THttpResponse extends TModule implements ITextWriter
{
if($this->_bufferOutput)
@ob_end_flush();
- parent::__destruct();
}
/**
@@ -396,6 +395,14 @@ class THttpResponse extends TModule implements ITextWriter
$type=$this->_htmlWriterType;
return Prado::createComponent($type,$this);
}
+
+ /**
+ * @return THttpRequest request module
+ */
+ public function getRequest()
+ {
+ return $this->getApplication()->getRequest();
+ }
}
?> \ No newline at end of file