From 63b0c46594a8789b0644be47ec61cf2372cf5ff0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 6 Nov 2006 15:22:08 +0000 Subject: Fixed URL redirection broken issue. --- demos/quickstart/protected/controls/SearchBox.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/quickstart') 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 @@ 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); } } -- cgit v1.2.3