【问题标题】:Core.php in cakephp 3cakephp 3 中的 Core.php
【发布时间】:2016-07-26 08:16:33
【问题描述】:

我曾经在 cakephp2 中使用“routing.prefix”进行一些配置。它在文件 core.php 中。 我注意到 Cakephp 3 中没有 core.php。蛋糕 3 中的 core.php 是什么。

【问题讨论】:

    标签: php cakephp-2.0 cakephp-3.0


    【解决方案1】:

    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

    所以如果你想有一个命名路由把它放在 routes.php

    http://book.cakephp.org/3.0/en/development/routing.html#using-named-routes

    【讨论】:

      【解决方案2】:

      那就是 Config/app.php

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-10-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多