title: How to generate barcode in CodeIgniter-3.0rc2 using zend barcode library
body: <p>Here is my controller and view. image is not return by controller.before this I used codeignter version 2.2 . there work properly but in the CodeIgniter-3.0rc2 is not working.</p>
  
  <pre><code>&lt;img src="&lt;?php echo base_url('index.php/barcode');?&gt;"  alt="not show" style="margin-top:20px; margin-left:90%;"/&gt;
  </code></pre>
  
  <p>below is my controller:</p>
  
  <pre><code>&lt;?php
  class barcode extends MY_Controller {
  
      public function index()
      {
          //I'm just using rand() function for data example
          $this-&gt;load-&gt;library('zend');
          $this-&gt;zend-&gt;load('Zend/Barcode');
  
          $barcodeOptions = array('text' =&gt; 'ZEND-FRAMEWORK');
          $rendererOptions = array('imageType'          =&gt;'png', 
                                   'horizontalPosition' =&gt; 'center', 
                                   'verticalPosition'   =&gt; 'middle');
          $imageResource= Zend_Barcode::factory('code39', 'image', $barcodeOptions, $rendererOptions)-&gt;render();
          return $imageResource;   
      }
  }
  ?&gt;
  </code></pre>
  
  <p>output is not show</p>