Welcome Guest, Not a member yet? Register   Sign In
Trying to use a barcode library with Composer and CI4
#6

(06-26-2020, 05:59 AM)kabeza Wrote:
(06-26-2020, 05:52 AM)Paradinight Wrote:
PHP Code:
$generator = new \Picqer\Barcode\BarcodeGeneratorPNG(); 

It miss \

Wow, it was just that ... It worked!
Thanks @Paradinight

If you use "use" you can do:

use Picqer\Barcode\BarcodeGeneratorPNG;

$generator = new BarcodeGeneratorPNG();

or


use Picqer\Barcode\BarcodeGeneratorPNG as AnOtherName;

$generator = new AnOtherName();
Reply


Messages In This Thread
RE: Trying to use a barcode library with Composer and CI4 - by Paradinight - 06-26-2020, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB