SAAS-1062 - Podcast skeleton work; slight rework to backend functionality

This commit is contained in:
Duncan Sommerville 2015-09-18 15:39:12 -04:00
parent 6934bcfdab
commit 6de6e2767c
6 changed files with 140 additions and 14 deletions

View file

@ -0,0 +1,20 @@
<?php
class RenderController extends Zend_Controller_Action {
public function init() {
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$csrf_namespace = new Zend_Session_Namespace('csrf_namespace');
$csrf_element = new Zend_Form_Element_Hidden('csrf_token');
$csrf_element->setValue($csrf_namespace->authtoken)->setRequired('true')->removeDecorator('HtmlTag')->removeDecorator('Label');
$this->view->csrf = $csrf_element;
}
public function podcastUrlDialogAction() {
$path = 'podcast/podcast_url_dialog.phtml';
$this->_helper->json->sendJson(array("html"=>$this->view->render($path)));
}
}