From 682d48577ae6e0118a11e5e6134fdbbb6048456d Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 8 Feb 2006 22:33:11 +0000 Subject: Updated application lifecycle and related tutorial description. --- framework/Web/THttpResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index d64a82af..a8c3777a 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -265,7 +265,8 @@ class THttpResponse extends TModule implements ITextWriter */ public function redirect($url) { - $this->getApplication()->onExitApplication(); + if(!$this->getApplication()->getRequestCompleted()) + $this->getApplication()->onEndRequest(); header('Location:'.$url); exit(); } -- cgit v1.2.3