summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls/SearchBox.php
diff options
context:
space:
mode:
authorxue <>2006-11-06 15:22:08 +0000
committerxue <>2006-11-06 15:22:08 +0000
commit63b0c46594a8789b0644be47ec61cf2372cf5ff0 (patch)
treeb9c039726df4e95d001ff426b523b832d3ca92de /demos/quickstart/protected/controls/SearchBox.php
parentbce854019ec98edc77b541af3d971a1d95da13af (diff)
Fixed URL redirection broken issue.
Diffstat (limited to 'demos/quickstart/protected/controls/SearchBox.php')
-rw-r--r--demos/quickstart/protected/controls/SearchBox.php12
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);
}
}