zend_barcode in MVC
Posted
by Joaquín L. Robles
on Stack Overflow
See other posts from Stack Overflow
or by Joaquín L. Robles
Published on 2010-03-31T17:48:26Z
Indexed on
2010/03/31
19:53 UTC
Read the original article
Hit count: 574
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!
© Stack Overflow or respective owner