_baseUrl = 'http://' . $CC_CONFIG['baseUrl'] . ":" . $CC_CONFIG['basePort'] . "/"; $this->view->layout()->disableLayout(); // Don't inject the standard Now Playing header. $this->_helper->viewRenderer->setNoRender(true); // Don't use (phtml) templates } /** * Upload the file with the given id to a third-party service * * @return void * * @throws Zend_Controller_Response_Exception thrown if upload fails for any reason */ public function uploadAction() { $request = $this->getRequest(); $id = $request->getParam('id'); $this->_service->upload($id); } /** * Download the file with the given id from a third-party service * * @return void * * @throws Zend_Controller_Response_Exception thrown if download fails for any reason */ public function downloadAction() { $request = $this->getRequest(); $id = $request->getParam('id'); $this->_service->download($id); } /** * Delete the file with the given id from a third-party service * * @return void * * @throws Zend_Controller_Response_Exception thrown if deletion fails for any reason */ public function deleteAction() { $request = $this->getRequest(); $id = $request->getParam('id'); $this->_service->delete($id); } }