From cc61c2d74e151a7fb75303f8740edfe74cdd9eb8 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 11 May 2006 11:35:35 +0000 Subject: Update api docs and add API search --- demos/quickstart/protected/pages/Search.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'demos/quickstart/protected/pages/Search.php') diff --git a/demos/quickstart/protected/pages/Search.php b/demos/quickstart/protected/pages/Search.php index c7bdce89..297d2f50 100644 --- a/demos/quickstart/protected/pages/Search.php +++ b/demos/quickstart/protected/pages/Search.php @@ -9,9 +9,17 @@ class Search extends TPage { if(!$this->IsPostBack && strlen($text = $this->search->getText()) > 0) { - $search = $this->getApplication()->getModule("search"); - $this->results->setDataSource($search->find($text)); - $this->results->dataBind(); + $quickstart = $this->getApplication()->getModule("quickstart_search"); + $hits_1 = $quickstart->find($text); + $this->quickstart_results->setDataSource($hits_1); + $this->quickstart_results->dataBind(); + + $api = $this->getApplication()->getModule("api_search"); + $hits_2 = $api->find($text); + $this->api_results->setDataSource($hits_2); + $this->api_results->dataBind(); + + $this->emptyResult->setVisible(count($hits_1)+count($hits_2) == 0); } } -- cgit v1.2.3