Added setNoRender call to MediaController and removed unnecessary views
This commit is contained in:
parent
afffd0c876
commit
da293f610f
8 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,8 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
public function init()
|
||||
{
|
||||
$this->view->layout()->disableLayout();
|
||||
// Remove reliance on .phtml files to render requests
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
|
@ -445,7 +447,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
$importedStorageDirectory, basename($originalFilename),
|
||||
$callbackUrl, $apiKey);
|
||||
}
|
||||
|
||||
|
||||
private function getOwnerId()
|
||||
{
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue