summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/Home.php2
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox2/LabeledTextBox.php1
2 files changed, 2 insertions, 1 deletions
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);
}