From 6e29b055b3cbc2a46e29075608c7e82a328d5270 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 15 Feb 2006 07:44:51 +0000 Subject: Adding new TRatingList component. --- demos/quickstart/protected/pages/Controls/NewControl.page | 1 + .../protected/pages/Controls/Samples/LabeledTextBox2/Home.php | 2 +- .../protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/NewControl.page b/demos/quickstart/protected/pages/Controls/NewControl.page index 1e934409..61209b6b 100644 --- a/demos/quickstart/protected/pages/Controls/NewControl.page +++ b/demos/quickstart/protected/pages/Controls/NewControl.page @@ -64,6 +64,7 @@ class LabeledTextBox extends TControl implements INamingContainer { $this->getControls()->add($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); } diff --git a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php index 2309bd88..2b18972d 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php +++ b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php @@ -1,6 +1,6 @@ getControls()->add(' '); $this->_textbox=new TTextBox; $this->_textbox->setID('TextBox'); + $this->_label->setForControl('TextBox'); $this->getControls()->add($this->_textbox); } -- cgit v1.2.3