cakephp 3中的Core.php [英] Core.php in cakephp 3
问题描述
我以前在cakephp2中使用 routing.prefix进行一些配置。它在文件core.php中。
我注意到Cakephp 3中没有core.php。蛋糕3中的core.php等效什么。
I used to do some config with "routing.prefix" in cakephp2. It was in the file core.php. I notice there is no core.php in Cakephp 3. What is the equivalent of core.php in cake 3.
推荐答案
cake3的核心配置文件是 config / app.php
the core configuration file for cake3 is 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
因此,如果您要命名路由,请将其放入 routes.php
so If you want to have a named routing put it in routes.php
http:// book .cakephp.org / 3.0 / en / development / routing.html#using-named-routes
这篇关于cakephp 3中的Core.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!