CC-1990: Widget to display schedule and "Now Playing" on any website

-initial checkin, some hardcoded values
This commit is contained in:
martin 2011-03-22 01:29:23 -04:00
parent 73238f92af
commit cbe8f98a7c
2 changed files with 227 additions and 0 deletions

View file

@ -101,6 +101,19 @@ class ApiController extends Zend_Controller_Action
exit;
}
public function liveInfoAction(){
global $CC_CONFIG;
// disable the view and the layout
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$result = Schedule::GetPlayOrderRange(0, 1);
//echo json_encode($result);
header("Content-type: text/javascript");
echo $_GET['callback'].'('.json_encode($result).')';
}
public function scheduleAction()
{
global $CC_CONFIG;