Home >Backend Development >PHP Tutorial >CakePHP不支持path/to途径,前后台无法方法

CakePHP不支持path/to途径,前后台无法方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:02:03855browse

CakePHP不支持path/to路径,前后台无法方法

本来想把前后台分离,但是阅读了cakephp的说明,才发现,cakephp根本就不支持path/to路径。

cakephp官网给出的 管理员分离方式:http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing

意思就是说所有的前端后台的控制器都在一个控制器中,然后通过admin_前缀来区分是给管理员使用还是给前端使用。。。


看到这一段真的很无语,使用人数那么多的一个框架,居然是连这个path/to的功能都没有,就这一点CI就可以甩掉CakePHP几条大街了。

CakePHP 前端和后台都用同一个控制器,呵呵。(default7#zbphp.com)


不知道CakePHP3.x是否还是这样的方式?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn