Does cakephp support path/to path?
访问 http://localhost/admin/home/index 路径 app/controllers/admin/HomeController.php 中的 index方法访问 http://localhost/home/index路径 /app/controllers/HomeController.php 中的index 方法
Now what you want to do is create a new admin directory under the/app/controllers directory (/app/controllers/admin)
Put all the controllers that are operated by the administrator and separate the front-end background.
But read a lot of articles seem to say that regardless of the front end or the administrator is placed in a controller?
Reply content:
Does cakephp support path/to path?
访问 http://localhost/admin/home/index 路径 app/controllers/admin/HomeController.php 中的 index方法访问 http://localhost/home/index路径 /app/controllers/HomeController.php 中的index 方法
Now what you want to do is create a new admin directory under the/app/controllers directory (/app/controllers/admin)
Put all the controllers that are operated by the administrator and separate the front-end background.
But read a lot of articles seem to say that regardless of the front end or the administrator is placed in a controller?
This feature has been implemented in cakephp 3.0+ and is very useful. I have used this framework to have a mature project and also write an open source CakePHP3.0-based CMS.