cakephp 3中的Core.php [英] Core.php in cakephp 3

查看:55
本文介绍了cakephp 3中的Core.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆