summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index a9b2fb3..64d9885 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -8,6 +8,8 @@ class ResourceController extends Zend_Controller_Action
public function init()
{
+ $this->_helper->layout->disableLayout();
+ $this->_helper->viewRenderer->setNoRender();
$session = new Application_Model_Session();
$sm = new Application_Model_SessionMapper();
@@ -53,9 +55,6 @@ class ResourceController extends Zend_Controller_Action
public function getinitramfsAction()
{
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
-
$bootosID = $this->thisSession->getBootosID();
if(is_dir("../resources/bootos/$bootosID/initramfs/") && is_numeric($bootosID)){
@@ -77,9 +76,6 @@ class ResourceController extends Zend_Controller_Action
public function getconfigAction()
{
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
-
$bootmenuentryID = $this->thisSession->getBootmenuentryID();
$bootmenuentry = new Application_Model_BootMenuEntries();
@@ -106,9 +102,6 @@ class ResourceController extends Zend_Controller_Action
public function getkernelAction()
{
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
-
$bootosID = $this->thisSession->getBootosID();
if(is_dir("../resources/bootos/$bootosID/kernel/") && is_numeric($bootosID)){
@@ -129,9 +122,7 @@ class ResourceController extends Zend_Controller_Action
public function getkclAction()
{
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
-
+
$bmeID = $this->thisSession->getBootmenuentryID();
if(is_numeric($bmeID)){
@@ -164,9 +155,6 @@ class ResourceController extends Zend_Controller_Action
// after selecting the BootOS it will be saved in session
// so getkclAction, getkernelAction, getconfigAction and getinitramfsAction
// can be called with session-identifier
-
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
$return_val =
array(