From ae1c1995b2fec431afe7cca23b2697e1bef17baf Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 04:28:06 +0000 Subject: moved shortcut methods from TComponent to TControl. --- framework/Web/THttpResponse.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'framework/Web/THttpResponse.php') 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 -- cgit v1.2.3