summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TPage.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TPage.php')
-rw-r--r--framework/Web/UI/TPage.php9
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();
}
/**