From 15437db2980b0ab7782fe1dab261aa75b6b0b410 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 21 Mar 2011 14:07:06 +0100 Subject: Filter angepasst, wenn keine Mitgliedschaft besteht fbgui als beispiel mit bootmenu ausgestattet --- .../modules/fbgui/controllers/IndexController.php | 14 +++--- .../modules/fbgui/views/scripts/index/index.phtml | 52 ++++------------------ 2 files changed, 18 insertions(+), 48 deletions(-) (limited to 'application/modules/fbgui') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index f5f8cdf..fe457b6 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -10,7 +10,10 @@ class Fbgui_IndexController extends Zend_Controller_Action public function indexAction() { - + if(isset($_SESSION['postdata'])){ + $_POST = ($_SESSION['postdata']); + unset($_SESSION['postdata']); + } $keys = $this->_request->getParam('keys'); $post = $this->_request->getParam('post'); if($post != '' && $keys != ''){ @@ -51,10 +54,11 @@ class Fbgui_IndexController extends Zend_Controller_Action // Request Bootmenu $pbsFilter = new Pbs_Filter(); $bootmenuID = $pbsFilter->evaluate(); - print_a('bootmenuID is ',$bootmenuID); if($bootmenuID != null){ - print_a('goto bootmenu'); - #$this->_redirect('/dev/bootmenu/index/bootmenuid/'.$bootmenuID); + print_a('goto bootmenu '.$bootmenuID); + $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); + $res = $bootmenuentriesMapper->findBy('bootmenuID',$bootmenuID); + $this->view->entries = $res; } else{ print_a('no filter is valid, goto login'); @@ -65,7 +69,7 @@ class Fbgui_IndexController extends Zend_Controller_Action echo "

Not Welcome

"; print_a($_POST); } - die(); + } diff --git a/application/modules/fbgui/views/scripts/index/index.phtml b/application/modules/fbgui/views/scripts/index/index.phtml index 4b38f0a..2e93bda 100644 --- a/application/modules/fbgui/views/scripts/index/index.phtml +++ b/application/modules/fbgui/views/scripts/index/index.phtml @@ -1,43 +1,9 @@ - -
-

Welcome to the Zend Framework!

- -

This is your project's main page

- -
-

-

- Helpful Links:
- Zend Framework Website | - Zend Framework Manual -

-
-
\ No newline at end of file + +entries as $entry):?> + + + + + + +
getID();?>getTitle();?>take this
-- cgit v1.2.3-55-g7522