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

(06-26-2020, 06:19 AM)Paradinight Wrote: If you use "use" you can do:

use Picqer\Barcode\BarcodeGeneratorPNG;
$generator = new BarcodeGeneratorPNG();

or

use Picqer\Barcode\BarcodeGeneratorPNG as AnOtherName;
$generator = new AnOtherName();

Great! that worked fine. Thanks again for the useful tips
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB