SAAS-1202 - move station podcast to top-level menu item

This commit is contained in:
Duncan Sommerville 2015-11-13 14:57:32 -05:00
parent 50c0bc2c28
commit 8e867b522c
19 changed files with 271 additions and 200 deletions

View file

@ -188,14 +188,19 @@ class Rest_PodcastController extends Zend_Rest_Controller
$this->_helper->json->sendJson($responseBody);
}
/**
* @throws PodcastNotFoundException
*
* @deprecated
*/
public function stationAction() {
$stationPodcastId = Application_Model_Preference::getStationPodcastId();
$podcast = Application_Service_PodcastService::getPodcastById($stationPodcastId);
$path = 'podcast/station_podcast.phtml';
$path = 'podcast/station.phtml';
$this->view->podcast = $podcast;
$this->_helper->json->sendJson(array(
"podcast" => json_encode($podcast),
"html" => $this->view->render($path),
"html" => $this->view->render($path)
));
}