Hey,

I have this barcode action in a LabelController that renders a gif image of a 
Zend_Barcode:

public function barcodeAction() {
   $this->_helper->layout->disableLayout();
   $this->_helper->viewRenderer->setNoRender();
   $barcodeOptions = array('text' => 'ZendFramework');
   $rendererOptions = array('imageType' => 'gif');
   Zend_Barcode::render('code39', 'image', $barcodeOptions, $rendererOptions);
}
This action renders a gif image in the browser. 

What I want is to render this image inside a page just like a normal gif image.
Something like this:
<html>
  <head>
    <title>Label</title>
  </head>
  <body>
  <div>
    Other label info ...
  </div>
  <div>
    <?php echo $this->action('barcode', 'label', null, array()); ?>
  </div>
</body>
</html>

Above example is causing an error, saying that there is an error in the image. 
I think it has something to do with mixing up the image with html.

Does someone know how to do this?

Kind regards,

Laurens



Reply via email to