summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls
diff options
context:
space:
mode:
authorwei <>2006-02-15 07:44:51 +0000
committerwei <>2006-02-15 07:44:51 +0000
commit6e29b055b3cbc2a46e29075608c7e82a328d5270 (patch)
tree13a197ad850f360125a96f5de83f1742a12e98ad /demos/quickstart/protected/pages/Controls
parentd653bda6c6217f160a4de77e3f2f0ee62096be67 (diff)
Adding new TRatingList component.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r--demos/quickstart/protected/pages/Controls/NewControl.page1
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php2
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php1
3 files changed, 3 insertions, 1 deletions
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 @@
<?php
-Prado::using('Application.pages.Controls.Samples.LabeledTextBox1.LabeledTextBox');
+Prado::using('Application.pages.Controls.Samples.LabeledTextBox2.LabeledTextBox');
class Home extends TPage
{
diff --git a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php
index 0d410357..4b8ac2c2 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php
@@ -13,6 +13,7 @@ class LabeledTextBox extends TControl implements INamingContainer
$this->getControls()->add('&nbsp;');
$this->_textbox=new TTextBox;
$this->_textbox->setID('TextBox');
+ $this->_label->setForControl('TextBox');
$this->getControls()->add($this->_textbox);
}