diff options
| author | Simon | 2011-04-05 12:06:35 +0200 |
|---|---|---|
| committer | Simon | 2011-04-05 12:06:35 +0200 |
| commit | b9ac3ffdb68cfb48469d49e09c6165513402aedb (patch) | |
| tree | d13185983e20858cece940ddf5a45bf83b74fa96 /application/modules/user/controllers/BootosController.php | |
| parent | such-aussehen geƤndert (diff) | |
| download | pbs2-b9ac3ffdb68cfb48469d49e09c6165513402aedb.tar.gz pbs2-b9ac3ffdb68cfb48469d49e09c6165513402aedb.tar.xz pbs2-b9ac3ffdb68cfb48469d49e09c6165513402aedb.zip | |
suche in Client & Bootos
Diffstat (limited to 'application/modules/user/controllers/BootosController.php')
| -rw-r--r-- | application/modules/user/controllers/BootosController.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/application/modules/user/controllers/BootosController.php b/application/modules/user/controllers/BootosController.php index 8f602fe..e1b4f7b 100644 --- a/application/modules/user/controllers/BootosController.php +++ b/application/modules/user/controllers/BootosController.php @@ -66,6 +66,17 @@ class user_BootosController extends Zend_Controller_Action $this->view->bootoslist = $this->bootosMapper->findBy(array("groupID" => $groupID)); $this->view->update = array(); + // Search + $search = $this->_request->getParam('search'); + $mySearch = new Pbs_Search(); + $mySearch->setSearchTerm($search); + $mySearch->setModule('bootos'); + $this->view->searchform = $mySearch->searchForm(); + if($search != ''){ + $this->view->search = $mySearch->getSearchTerm(); + $this->view->bootoslist = $mySearch->search($this->view->bootoslist); + } + // Pagination $pagination = new Pbs_Pagination(); $pagination->setPerPage(5); @@ -92,6 +103,9 @@ class user_BootosController extends Zend_Controller_Action } } + public function searchAction(){ + $this->_redirect('/user/bootos/index/search/'.($_GET['search'])); + } public function createbootosAction() { |
