Saturday, February 21, 2015

Re: CakePHP 3 Plugin not working (controller file not found)

Dammnit - that was the prob. I didn't have autoload=true nor add into composer. Thanks!

On Wednesday, February 18, 2015 at 4:05:49 AM UTC-8, Gaurav Kumar wrote:
Hey HVan,

Change you autoload in composer.json with this

"autoload": {
        "psr-4": {
            "App\\": "src",
            "ContactManager\\": "./plugins/ContactManager/src",
            "ContactManager\\Test\\": "./plugins/ContactManager/tests"
        }
    }, 

On Sunday, February 8, 2015 at 9:28:58 PM UTC+5:30, HVan wrote:
I followed all the instrucitons, even tried baking a plugin. But each time I reference the plugin (eg. http://localhost/contact_manager/contacts) it says Controller not found. All the files have been created and placed in the proper location. It will say file not found in /plugins/ContactManager/src/Controller/ContactsController.php and I've tripled checked, of course, that the file exists. I also created the Table file - nada.

It's loading the plugin properly because when I remove, say bootstrap.php inside the plugin, it will say the bootstrap file is not found inside the plugin.

Any ideas?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: