Added setNoRender call to MediaController and removed unnecessary views

This commit is contained in:
Duncan Sommerville 2014-09-16 18:06:45 -04:00
parent afffd0c876
commit da293f610f
8 changed files with 3 additions and 1 deletions

View file

@ -21,6 +21,8 @@ class Rest_MediaController extends Zend_Rest_Controller
public function init() public function init()
{ {
$this->view->layout()->disableLayout(); $this->view->layout()->disableLayout();
// Remove reliance on .phtml files to render requests
$this->_helper->viewRenderer->setNoRender(true);
} }
public function indexAction() public function indexAction()
@ -445,7 +447,7 @@ class Rest_MediaController extends Zend_Rest_Controller
$importedStorageDirectory, basename($originalFilename), $importedStorageDirectory, basename($originalFilename),
$callbackUrl, $apiKey); $callbackUrl, $apiKey);
} }
private function getOwnerId() private function getOwnerId()
{ {
try { try {