Библиотека штрих-кодов Zend не работает с codeingniter в Live Server

Я использую библиотеку Zend из Вот

Мой код:
Контроллер счетов

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Invoice extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model('InvoiceModel');
$this->load->library('zend');
$this->zend->load('Zend/Barcode');
}
public function index()
{

$code = uniqid();
$rendererOptions = array('imageType'          =>'png');
$file= Zend_Barcode::draw('code128', 'image', array('text'=>$code), $rendererOptions);
imagepng($file,"assets/barcode/{$code}.png");
$data['barcode'] = $code;
$this->load->view('InvoiceView', $data);

}
}
}
?>

В InvoiceView

<img class=" barcode" src="<?php echo base_url().'assets/barcode/'.$barcode.'.png'?>">

Работает нормально в локальный, Но не работает в живой сервер.

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector