summaryrefslogtreecommitdiffstats
path: root/application/modules/backend/controllers/BootmediaController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/backend/controllers/BootmediaController.php')
-rw-r--r--application/modules/backend/controllers/BootmediaController.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/application/modules/backend/controllers/BootmediaController.php b/application/modules/backend/controllers/BootmediaController.php
new file mode 100644
index 0000000..1e0de8c
--- /dev/null
+++ b/application/modules/backend/controllers/BootmediaController.php
@@ -0,0 +1,53 @@
+<?php
+
+class Backend_BootmediaController extends Zend_Controller_Action
+{
+ private $_mbootmedia;
+ private $_logger;
+
+ public function init()
+ {
+ $this->_helper->layout->disableLayout();
+ #$this->_helper->viewRenderer->setNoRender();
+
+ $this->_mbootmedia = new Model_Bootmedia();
+
+
+ $this->_logger = new Zend_Log();
+ $w = new Zend_Log_Writer_Stream(APPLICATION_PATH . '/../data/debug.log');
+
+ $this->_logger->addWriter($w);
+ }
+
+ public function indexAction()
+ {
+ // action body
+ }
+
+ public function delAction()
+ {
+ $this->_helper->viewRenderer->setNoRender();
+
+ $id = $this->getRequest()->getParam("id");
+
+ $w = $this->_mbootmedia->getAdapter()->quoteInto('id = ?', $id);
+ $this->_mbootmedia->delete($w);
+ }
+
+ public function listAction()
+ {
+ $data = $this->_mbootmedia->fetchAll()->toArray();
+ $this->view->listdata = $data;
+ }
+
+
+}
+
+
+
+
+
+
+
+
+