summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls
diff options
context:
space:
mode:
authorxue <>2006-05-16 19:20:22 +0000
committerxue <>2006-05-16 19:20:22 +0000
commitf44f5a5ba6e1c03b7b9279cd1a2433a3c040e4ae (patch)
treef7ee2f5014bf96040de5edfa8407eeef644ada46 /demos/quickstart/protected/pages/Controls
parent0590b6f1695d708665d0851381bebdc74973f8ee (diff)
Fixed #175.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r--demos/quickstart/protected/pages/Controls/NewControl.page4
1 files changed, 2 insertions, 2 deletions
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();