From ff4b281e20eb9a1974813b9dab0c7c1aeae13736 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 11 Jul 2011 14:18:42 +0200 Subject: uriboot test --- .../ipxe/controllers/ResourceController.php | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'application/modules/ipxe/controllers/ResourceController.php') diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index 4d2a92a..839debc 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -33,7 +33,20 @@ class Ipxe_ResourceController extends Zend_Controller_Action $this->thisSession = $session->setOptions($result[0]); $this->thisSession->setID($result[0]['sessionID']); } + + $bootmenuntryID = $this->_request->getParam('bme'); + + if(isset($bootmenuntryID)){ + $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); + $bootmenuentry = new Application_Model_BootMenuEntries(); + $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); + + $sessionMapper = new Application_Model_SessionMapper(); + $this->thisSession->setBootmenuentryID($bootmenuntryID); + $this->thisSession->setBootosID($bootmenuentry->getBootosID()); + $sessionMapper->save($this->thisSession); + } } public function getvesamenuAction(){ @@ -99,18 +112,6 @@ class Ipxe_ResourceController extends Zend_Controller_Action } public function getkernelAction(){ - - $bootmenuntryID = $this->_request->getParam('bme'); - - $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); - $bootmenuentry = new Application_Model_BootMenuEntries(); - $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); - - $sessionMapper = new Application_Model_SessionMapper(); - - $this->thisSession->setBootmenuentryID($bootmenuntryID); - $this->thisSession->setBootosID($bootmenuentry->getBootosID()); - $sessionMapper->save($this->thisSession); $bootosID = $this->thisSession->getBootosID(); -- cgit v1.2.3-55-g7522