diff options
author | xue <> | 2006-05-17 21:24:40 +0000 |
---|---|---|
committer | xue <> | 2006-05-17 21:24:40 +0000 |
commit | 3d437d9dcd37dc901f53ca3322ba118851e3c676 (patch) | |
tree | 076d80a286ab5b1cac4267a4155591d2a77f5e80 /demos/quickstart/protected/pages/Controls | |
parent | fc2d7f134f07a89e4f01b703ba10d54f63fe6a68 (diff) |
Merge from 3.0 branch till 1073.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/NewControl.page | 4 |
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();
|