Skip to content

Class Not Found Issue #11

@dividedbynothing

Description

@dividedbynothing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions