summaryrefslogtreecommitdiffstats
path: root/application/modules/ui/controllers/DialogController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/ui/controllers/DialogController.php')
-rw-r--r--application/modules/ui/controllers/DialogController.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/application/modules/ui/controllers/DialogController.php b/application/modules/ui/controllers/DialogController.php
new file mode 100644
index 0000000..6bba3f8
--- /dev/null
+++ b/application/modules/ui/controllers/DialogController.php
@@ -0,0 +1,53 @@
+<?php
+
+class Ui_DialogController extends Zend_Controller_Action
+{
+ private $_mkernel;
+ private $_msources;
+ private $_mbootmedia;
+ private $_logger;
+
+
+ public function init()
+ {
+ $this->_helper->layout->disableLayout();
+ #$this->_helper->viewRenderer->setNoRender();
+
+ $this->_mkernels = new Model_Kernels();
+ $this->_msources = new Model_Sources();
+ $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()
+ {
+
+ }
+
+ public function getAction()
+ {
+ $dialog = $this->getRequest()->getParam('bootmedia');
+
+ if (!empty($dialog)) {
+ if (in_array($dialog, array('create', 'progress')))
+ $this->view->dialog =
+ $this->view->render("dialog/bootmedia.$dialog.phtml");
+ }
+
+ $dialog = $this->getRequest()->getParam('menu');
+
+ if (!empty($dialog)) {
+ if (in_array($dialog, array('create', 'createentry', 'createassignment', 'createentry2', 'progress')))
+ $this->view->dialog =
+ $this->view->render("dialog/menu.$dialog.phtml");
+ }
+ }
+
+
+
+}