summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2006-02-08 22:33:11 +0000
committerxue <>2006-02-08 22:33:11 +0000
commit682d48577ae6e0118a11e5e6134fdbbb6048456d (patch)
treef1210e77e88ff2dc4e565f78fdf0227ee5c80ebb /framework/Web
parentb4103f28384d4ce9b5dc8e8a1abfda378eb42db0 (diff)
Updated application lifecycle and related tutorial description.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/THttpResponse.php3
1 files changed, 2 insertions, 1 deletions
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();
}