blob: 6bba3f83a268dcb3c50bb61504d599be30ee50d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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");
}
}
}
|