Skip to content
New issue

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

Class Not Found Issue #11

Open
dividedbynothing opened this issue Jan 11, 2018 · 1 comment
Open

Class Not Found Issue #11

dividedbynothing opened this issue Jan 11, 2018 · 1 comment

Comments

@dividedbynothing
Copy link

dividedbynothing commented Jan 11, 2018

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.

@dividedbynothing
Copy link
Author

dividedbynothing commented Jan 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant