We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using php-barcode-generator in CakePHP framework. I have installed plugin in vendor directory and using it in my controller
require_once(ROOT.'/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorHTML.php'); public function shippingSlipPrint($order_id = null) { $generator = new BarcodeGeneratorHTML(); $barcode = $generator->getBarcode('1234567890', $generator::TYPE_CODE_128); $this->set('barcode', $barcode); }
But this is giving error as
Error: Class 'Picqer\Barcode\BarcodeGenerator' not found File /myapp/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorHTML.php Line: 6
content of BarcodeGeneratorHTML.php
<?php namespace Picqer\Barcode; class BarcodeGeneratorHTML extends BarcodeGenerator { ..... ...... }
The text was updated successfully, but these errors were encountered:
Then you also need to require the ROOT . '/vendor/picqer/php-barcode-generator/src/BarcodeGenerator.php' file
ROOT . '/vendor/picqer/php-barcode-generator/src/BarcodeGenerator.php'
With Composer we use Autoload, which loads this files automatically.
Sorry, something went wrong.
I am having a similar issue as I could not use composer.
Please advise
It is just basic PHP, require/include the proper file before you can use it.
I fixed the problem by requiring autoload file.
Thanks and keep up the good work
No branches or pull requests
I'm using php-barcode-generator in CakePHP framework.
I have installed plugin in vendor directory and using it in my controller
But this is giving error as
content of BarcodeGeneratorHTML.php
The text was updated successfully, but these errors were encountered: