_helper->getHelper('contextSwitch'); $ajaxContext->addActionContext('get-show-schedule', 'json') ->initContext(); } public function indexAction() { // action body } public function getShowScheduleAction() { //$from = $this->_getParam("from"); //$to = $this->_getParam("to"); $today_timestamp = date("Y-m-d H:i:s"); $this->view->shows = Show::getShows($today_timestamp, null, $excludeInstance=NULL, $onlyRecord=TRUE); } }