diff options
author | xue <> | 2006-11-25 20:51:43 +0000 |
---|---|---|
committer | xue <> | 2006-11-25 20:51:43 +0000 |
commit | cb0aeb81d77d7170196f1b667978f56c6018100b (patch) | |
tree | 53deb6628356454d7e4348641135c84c1a909292 /demos/quickstart/protected/controls/SearchBox.php | |
parent | af340f68ef716b9a3c021a8cabc40068068bf3bf (diff) |
merge from 3.0 branch till 1508.
Diffstat (limited to 'demos/quickstart/protected/controls/SearchBox.php')
-rw-r--r-- | demos/quickstart/protected/controls/SearchBox.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/quickstart/protected/controls/SearchBox.php b/demos/quickstart/protected/controls/SearchBox.php index b579cd91..6fb8e376 100644 --- a/demos/quickstart/protected/controls/SearchBox.php +++ b/demos/quickstart/protected/controls/SearchBox.php @@ -1,25 +1,25 @@ <?php
-class SearchBox extends TTemplateControl
+class SearchBox extends TTemplateControl
{
- public function getText()
+ public function getText()
{
$this->ensureChildControls();
return $this->getRegisteredObject('search')->getText();
}
-
+
public function getTextBox()
{
$this->ensureChildControls();
return $this->getRegisteredObject('search');
}
-
+
public function getButton()
{
$this->ensureChildControls();
return $this->getRegisteredObject('find');
}
-
+
public function onInit($param)
{
parent::onInit($param);
@@ -32,7 +32,7 @@ class SearchBox extends TTemplateControl if(strlen($query = $this->search->getText()) >0)
{
$ps = $this->getApplication()->getPageService();
- $page = $ps->constructUrl('Search', array('q' => $query));
+ $page = $ps->constructUrl('Search', array('q' => $query), false);
$this->getApplication()->getResponse()->redirect($page);
}
}
|