38 lines
908 B
PHP
38 lines
908 B
PHP
<?php
|
|
|
|
class NowplayingController extends Zend_Controller_Action
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
|
$ajaxContext->addActionContext('get-data-grid-data', 'json')
|
|
->initContext();
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
$this->view->headScript()->appendFile('/js/datatables/js/jquery.dataTables.min.js','text/javascript');
|
|
$this->view->headScript()->appendFile('/js/playlist/nowplayingdatagrid.js','text/javascript');
|
|
}
|
|
|
|
public function getDataGridDataAction()
|
|
{
|
|
$viewType = $this->_request->getParam('view');
|
|
$this->view->entries = Application_Model_Nowplaying::GetDataGridData($viewType);
|
|
}
|
|
|
|
public function livestreamAction()
|
|
{
|
|
//use bare bones layout (no header bar or menu)
|
|
$this->_helper->layout->setLayout('bare');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|