public function getAction() { $id = $this->getRequest()->getParam('id'); $this->getResponse()->setHeader('Content-Type', 'application/pdf'); $this->getResponse()->setheader('Content-disposition', 'attachment; filename="' . PowerMedia_Ifirma_Model_ApiManager::getInstance()->getDocumentPdfName($id) . '"'); $this->getResponse()->setBody(PowerMedia_Ifirma_Model_ApiManager::getInstance()->getDocumentAsPdf($id)); }
public function getGetInvoiceBillUrl() { return Mage::getModel('adminhtml/url')->getUrl('ifirma/invoice/get', array('id' => PowerMedia_Ifirma_Model_ApiManager::getInstance()->getIfirmaInvoiceMapper()->getInvoiceBillMapModel($this->getOrder()->getId())->getId())); }