Reputation: 157
I did a fresh installation of CakePHP 3.1. Then I baked a plugin. Then I baked a plugin controller.
Done as per the example in the documentation: http://book.cakephp.org/3.0/en/plugins.html#creating-your-own-plugins
But when I go to /cake-cms/cake-cms I get a Missing Controller error.
Error: Create the class CakeCmsController below in file: src\Controller\CakeCmsController.php
The baked code all looks fine to me. The baked plugin routes.php is being executed (I tested with exit;). The baked controller exists in: /plugins/CakeCms/src/Controller/CakeCmsController.php but CakePHP is not looking there.
The example in the documentation says it should just work.
Upvotes: 1
Views: 571
Reputation: 157
Ok, it looks like my problem was that my plugin had the same name as my project (cakecms). When I make a plugin with a different name then it works.
Upvotes: 1