hi people, i just want an Action to print a barcode image, but i can´t get this working in MVC, i just do the following:
public function barcodeAction() {
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
Zend_Barcode::render($_GET['barcodeType'], 'image', $_GET, $_GET);
}
but when I call
/barcode?barcodeType=code39&text=ZEND-FRAMEWORK
I just obtain: "The image couldn't be displayed because it has errors" (or something like that, browser-dependant). Thanks!