public function barcodeAction()
    {
        $code = $this->getRequest()->getParam('code', 'empty');
        \Zend_Layout::getMvcInstance()->disableLayout();
        $this->_helper->viewRenderer->setNoRender();

        $barcodeOptions = array('text' => $code);
        $rendererOptions = array();
        $barcode = \Zend_Barcode::render('code128', 'image', $barcodeOptions, $rendererOptions);
        $barcode->render();
    }
public function barcodeAction()
    {
        $code = $this->getRequest()->getParam('code', 'empty');
        \Zend_Layout::getMvcInstance()->disableLayout();
        $this->_helper->viewRenderer->setNoRender();

        $barcodeOptions = array('text' => $code);
        $rendererOptions = array();
        $barcode = \Zend_Barcode::render('code128', 'image', $barcodeOptions, $rendererOptions);
        $barcode->render();
    }
public function barcodeAction ( ) { $ code = $ this -> getRequest ( ) -> getParam ( 'code' , 'empty' ) ; \ Zend_Layout :: getMvcInstance ( ) -> disableLayout ( ) ; $ this -> _helper -> viewRenderer -> setNoRender ( ) ; $ barcodeOptions = array ( 'text' => $ code ) ; $ rendererOptions = array ( ) ; $ barcode = \ Zend_Barcode :: render ( 'code128' , 'image' , $ barcodeOptions , $ rendererOptions ) ; $ barcode -> render ( ) ; }
This can be used to generate barcodes, use the action

/openrosa/barcode/code/<tokenid>

example:
/openrosa/barocde/code/22pq-grkq

The image will be a png
This can be used to generate barcodes use the action