summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorwei <>2006-01-29 04:59:32 +0000
committerwei <>2006-01-29 04:59:32 +0000
commit397f1f02d104a08321e9500aa65e83e5b3d22c4e (patch)
tree5109066e57064f973978fabbd40d6fab2f844df0 /framework/Web/Services
parentc89523c4ab1bda766d6b0b4b4d2ade3513046400 (diff)
Allow TPage constructor to alter application configuration.
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TPageService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index b07527c6..0d8f28b9 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -442,8 +442,10 @@ class TPageService extends TService
}
else
$className='TPage';
+ //allow the page constructor to change application settings before template is loaded
+ $this->_page=new $className();
$this->_properties['Template']=$this->getTemplateManager()->getTemplateByFileName($path.self::PAGE_FILE_EXT);
- $this->_page=new $className($this->_properties);
+ $this->_page->initializeProperties($this->_properties);
}
else
throw new THttpException(404,'pageservice_page_unknown',$this->_pagePath);