ホームページ > に質問 > 本文
CakePHP是否支持path/to路径?
1
2
3
4
5
6
<code>访问 http://localhost/admin/home/index
<code>访问 http:
//localhost/admin/home/index
路径 app/controllers/admin/HomeController.php 中的 index方法
访问 http://localhost/home/index
访问 http:
//localhost/home/index
路径 /app/controllers/HomeController.php 中的index 方法
</code>
现在想实现的是 在/app/controllers 目录下新建 admin目录(/app/controllers/admin) 把管理员操作的全部控制器都放进去,分离前端后台。 但是看很多文章貌似说的不管前端或者管理员都放在一个控制器中?
阿神2017-04-10 14:54:35
在CakePHP 3.0+ 此功能已实现,挺好用。我已使用此框架有成熟的项目,也写的有开源的基于CakePHP3.0的CMS。