diff options
author | xue <> | 2006-01-29 05:44:51 +0000 |
---|---|---|
committer | xue <> | 2006-01-29 05:44:51 +0000 |
commit | 65323da89d6e3b2ecaed04fa45eed35f67c28a11 (patch) | |
tree | f0b953e479f95c8aa9efcd837ecfbee57559c445 /framework/Web/UI/TPage.php | |
parent | f8a6ad7273f2abd3c5c176910b63532b990446ca (diff) |
Changed how template controls initialize their properties.
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r-- | framework/Web/UI/TPage.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 28f1b036..a5e4fa52 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -111,11 +111,13 @@ class TPage extends TTemplateControl private $_previousPagePath='';
/**
- * Constructor, overrides parent implementation. Parent constructor called in initializeProperties.
+ * Constructor.
+ * Sets the page object to itself.
*/
public function __construct()
{
-
+ parent::__construct();
+ $this->setPage($this);
}
/**
@@ -125,15 +127,12 @@ class TPage extends TTemplateControl public function initializeProperties($initProperties=null)
{
Prado::trace('Constructing page','System.Web.UI.TPage');
- $this->setPage($this);
if(is_array($initProperties))
{
Prado::trace('Initializing page properties specified in configurations','System.Web.UI.TPage');
foreach($initProperties as $name=>$value)
$this->setSubProperty($name,$value);
}
- //ask template control to initialize
- parent::__construct();
}
/**
|