From 99458807b73ff35b07521697f806b4654d1ec8fd Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 8 Jun 2006 23:56:38 +0000 Subject: ensureChildControls() is now invoked in TControl::initRecursive --- framework/Web/UI/TControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 21065ae6..583b5f77 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1147,6 +1147,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ protected function initRecursive($namingContainer=null) { + $this->ensureChildControls(); if($this->getHasControls()) { if($this instanceof INamingContainer) @@ -1217,7 +1218,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable if($this->getVisible(false)) { - $this->ensureChildControls(); if(isset($this->_rf[self::RF_ADAPTER])) $this->_rf[self::RF_ADAPTER]->onPreRender(null); else -- cgit v1.2.3