summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected')
-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);
}