Does CakePHP support the pathto path? {Code...} what we want to achieve now is to create the admin directory (appcontrollersadmin) under the appcontrollers directory to put all the controllers operated by the Administrator in and separate the front-end and backend. However, I have read many articles that seem to have mentioned that CakePHP does not support path/to path?
Access http: // localhost/admin/home/index Path app/controllers/admin/HomeController. the index method in php accesses http: // localhost/home/index path/app/controllers/HomeController. index Method in php
Now you want to create an admin directory (/app/controllers/admin) under the/app/controllers directory)
All controllers operated by the Administrator are put in and the front-end and backend are separated.
But I have read many articles that seem to say that no matter whether the front-end or the administrator is put in a controller?
Reply content:
Does CakePHP support path/to path?
Access http: // localhost/admin/home/index Path app/controllers/admin/HomeController. the index method in php accesses http: // localhost/home/index path/app/controllers/HomeController. index Method in php
Now you want to create an admin directory (/app/controllers/admin) under the/app/controllers directory)
All controllers operated by the Administrator are put in and the front-end and backend are separated.
But I have read many articles that seem to say that no matter whether the front-end or the administrator is put in a controller?
This function has been implemented in CakePHP 3.0 + and is quite useful. I have already used this framework to have mature projects, and I have also written open-source CMS Based on CakePHP3.0.