我的一个应用程序 与编码器分解 并创建了条码 使用 Zend_ Barcode 库,
How can I show the barcode on codeignitor view. Tried as ,
// Only the text to draw is required
$barcodeOptions = array( text => NOT-ME );
// No required options
$rendererOptions = array();
// Draw the barcode in a new image,
$imageResource = Zend_Barcode::draw(
code39 , image , $barcodeOptions, $rendererOptions
);
$data[ barcode ] = imagejpeg($imageResource, barcode.jpg , 100);
// Free up memory
imagedestroy($imageResource);
视图
<img src="<?php echo $barcode;?>">
但失败了 : ()