1

I installed a plugin manually and I see an error in my URL address:

http://localhost/cake3/contact-manager/contacts

    Error: ContactManager.ContactsController could not be found.

    Error: Create the class ContactsController below in file: D:\www\cake3\plugins\ContactManager\src\Controller\ContactsController.php

    <?php
    namespace ContactManager\Controller;

    use ContactManager\Controller\AppController;

    class ContactsController extends AppController
    {

    }

My document:

http://book.cakephp.org/3.0/en/plugins.htm

In config: 'composer.json' to add this line:

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

And in file: 'config\bootstrap.php' added this line:

Plugin::load('ContactManager', ['routes' => true]); 
Mirza Sisic
  • 2,401
  • 4
  • 24
  • 38
amir
  • 103
  • 8

0 Answers0