You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've installed the qr-code-reader to my application via composer (on cake v 3.5.2 and php 7.0.8)
Following the usage instructions, I get the error: Class 'App\Controller\Libern\QRCodeReader\QRCodeReader' not found
Do I need to add anything thing to my bootstrap to load the plugin? If so, what is the right syntax for that?
And/or do I need to add a use line to my app controller such as: use Libern\QRCodeReader;
What would be the correct syntax for that if needed?
I've tried different settings with the bootstrap and controller but keep getting the error.
By the way, when I added Plugin::load('Libern/qr-code-reader');
to my bootstrap, I got an error saying it was not found in the plugins directory (it should be found in vendors).
Thanks in advance for any advice,
D.
The text was updated successfully, but these errors were encountered:
Just to note, I am able to get the khanamiryan plugin to work just by installing into my CakePHP app via composer, then adding use QrReader;
in my controller, and the using with this: $qrcode = new QrReader('path/to_image'); $text = $qrcode->text(); //return decoded text from QR Code
So I think the usage instructions here might need a little clarification.
Thanks
D
Hi ,
I've installed the qr-code-reader to my application via composer (on cake v 3.5.2 and php 7.0.8)
Following the usage instructions, I get the error:
Class 'App\Controller\Libern\QRCodeReader\QRCodeReader' not found
Do I need to add anything thing to my bootstrap to load the plugin? If so, what is the right syntax for that?
And/or do I need to add a use line to my app controller such as:
use Libern\QRCodeReader;
What would be the correct syntax for that if needed?
I've tried different settings with the bootstrap and controller but keep getting the error.
By the way, when I added
Plugin::load('Libern/qr-code-reader');
to my bootstrap, I got an error saying it was not found in the plugins directory (it should be found in vendors).
Thanks in advance for any advice,
D.
The text was updated successfully, but these errors were encountered: