From f44f5a5ba6e1c03b7b9279cd1a2433a3c040e4ae Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 16 May 2006 19:20:22 +0000 Subject: Fixed #175. --- demos/quickstart/protected/pages/Controls/NewControl.page | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/NewControl.page b/demos/quickstart/protected/pages/Controls/NewControl.page index 8f4b9be9..c2640a33 100644 --- a/demos/quickstart/protected/pages/Controls/NewControl.page +++ b/demos/quickstart/protected/pages/Controls/NewControl.page @@ -61,12 +61,12 @@ class LabeledTextBox extends TCompositeControl { $this->_label=new TLabel; $this->_label->setID('Label'); // add the label as a child of LabeledTextBox - $this->getControls()->add($label); + $this->getControls()->add($this->_label); $this->_textbox=new TTextBox; $this->_textbox->setID('TextBox'); $this->_label->setForControl('TextBox'); // add the textbox as a child of LabeledTextBox - $this->getControls()->add($textbox); + $this->getControls()->add($this->_textbox); } public function getLabel() { $this->ensureChildControls(); -- cgit v1.2.3