summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-06-08 23:56:38 +0000
committerxue <>2006-06-08 23:56:38 +0000
commit99458807b73ff35b07521697f806b4654d1ec8fd (patch)
tree34533823505feb2010c64f72dfdcebe4c7be6c44 /framework/Web/UI
parent97991dea453f103aba63ab1a1818e434c93c1ee8 (diff)
ensureChildControls() is now invoked in TControl::initRecursive
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TControl.php2
1 files changed, 1 insertions, 1 deletions
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