cakephp 3中的Core.php 3
问题描述:
我曾经在cakephp2中用“routing.prefix”做了一些配置。它在文件core.php中。 我注意到有在CakePHP 3.没有core.php中什么是core.php中的蛋糕相当于3cakephp 3中的Core.php 3
答
为cake3核心配置文件是config/app.php
http://book.cakephp.org/3.0/en/development/configuration.html
但路线在config/routes.php
文件
http://book.cakephp.org/3.0/en/development/routing.html
去3210所以如果你想有一个名为路由把它放在routes.php文件
http://book.cakephp.org/3.0/en/development/routing.html#using-named-routes
答
将被配置/ app.php