summaryrefslogtreecommitdiff
path: root/protected/controllers/SearchController.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-05-15 21:30:11 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-05-15 21:30:11 +0200
commit5759435f4da8ec800ba9af0fbbf7d6691e9ed56c (patch)
treea3e6f6c676743e89b11804a03bd4f1e837983be9 /protected/controllers/SearchController.php
parent94bdb31c204cdae3ca820828d4731f11f6ffeeae (diff)
diverse Layoutings
Diffstat (limited to 'protected/controllers/SearchController.php')
-rw-r--r--protected/controllers/SearchController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/protected/controllers/SearchController.php b/protected/controllers/SearchController.php
index 2cf87df..1dd2414 100644
--- a/protected/controllers/SearchController.php
+++ b/protected/controllers/SearchController.php
@@ -2,7 +2,7 @@
class SearchController extends Controller
{
- public static $Searchables = array('Verein' => array('beschreibung'),'Sitecontent'=>array('content'));
+ public static $Searchables = array('Verein' => array('beschreibung'),'Sitecontent'=>array('content','title'));
public function actionIndex()
{
$this->render('index');
@@ -14,7 +14,7 @@ class SearchController extends Controller
foreach (SearchController::$Searchables as $searchable => $columns) {
$q = new CDbCriteria();
foreach ($columns as $col) {
- $q->addSearchCondition($col,$_POST['search']);
+ $q->addSearchCondition($col,$_POST['search'],true,'OR');
}
$results[$searchable]=CActiveRecord::model($searchable)->findAll($q);
}