Search code examples
cakephpcontrollerbackendscaffolding

How to create a separate folder for backend controller in cakephp


I am using cakephp in my project. I would like to create an backend panel so that admin can manage all type of data. Url may like this: http://localhost/cake_project/admin/controller/action. My question is can i create a separate controller folder for the backend.


Solution

  • Prefix routing is probably what you need. To specify an alternate location for your controller files though you would have to use App::build().