1

I m using AdminLTE in my website. But the problem is i have done routing i.e www.mysite.com/admin is my path for admin and this is where i want to render Admin LTE. So i created a new AppController.php in Admin folder and rendered the AdminLTE in that controller. But the problem is other features like charts, different layouts and all are not working.

Here is my routing code Router::prefix('admin', function ($routes) { $routes->connect('/', ['controller' => 'Users', 'action' => 'login']);

$routes->fallbacks(DashedRoute::class);

});

Amol Bhandari SJ
  • 278
  • 2
  • 15
Akshay Naik
  • 553
  • 3
  • 17

1 Answers1

1

Check the way You have created new Appcontroller.New Appcontroller should not interfere with the original Appcontroller's functionality. Refer https://book.cakephp.org/3.0/en/controllers.html

tru.d
  • 555
  • 2
  • 6
  • 23