From b59ab2490b1bb82dc1d0b58d89584182b405d0a0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 19 Jun 2006 02:31:27 +0000 Subject: build script update. Fixed #82 and #165. --- demos/quickstart/protected/pages/Search.page | 18 ------------------ demos/quickstart/protected/pages/Search.php | 7 +------ 2 files changed, 1 insertion(+), 24 deletions(-) (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/Search.page b/demos/quickstart/protected/pages/Search.page index d3391222..ae7f07bc 100644 --- a/demos/quickstart/protected/pages/Search.page +++ b/demos/quickstart/protected/pages/Search.page @@ -4,24 +4,6 @@ - - -
- Found <%# $this->Parent->Data->Count %> classes in API documentation. -
-
- -
- -
-
-
-
diff --git a/demos/quickstart/protected/pages/Search.php b/demos/quickstart/protected/pages/Search.php index 297d2f50..f1d07ffa 100644 --- a/demos/quickstart/protected/pages/Search.php +++ b/demos/quickstart/protected/pages/Search.php @@ -13,13 +13,8 @@ class Search extends TPage $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); + $this->emptyResult->setVisible(!count($hits_1)); } } -- cgit v1.2.3