php - Missing Controller when using a prefix admin in CakePHP 3.2 -


i have issue admin part of website using cakephp 3.2.

this part works on wamp in local when moved site apache server, stopped working. have error message :

missing controller cake\routing\exception\missingcontrollerexception error: dashboardcontroller not found. error: create class dashboardcontroller below in file: src/controller/admin/dashboardcontroller.php

and error in variables :

error : unserializable object - cake\routing\exception\missingcontrollerexception. error: controller class dashboard not found in /data/vhosts/dev.droplet.ninja/htdev/vendor/cakephp/cakephp/src/routing/dispatcher.php, line 79

but controller exists @ right path content :

<?php namespace app\controller\admin;  use app\controller\appcontroller;  class dashboardcontroller extends appcontroller {      public function index()     {      } } 

the prefix in routes.php :

// admin namespace router::prefix('admin', function ($routes) {     $routes->connect('/', ['controller' => 'dashboard', 'action' => 'index', 'dashboard']);     $routes->fallbacks('dashedroute'); }); 

the routes works fine public part of website not this. seems can read prefix , try go file , ask me create exact same file have. mistery why can't find him.

also controller name in :

src/controller/admin/dashboardcontroller.php 

i looking differences between 2 apaches settings without finding can make cakephp have behavior.

do have idea ?

thank you


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -