where to define constants in cakephp

后端 未结 3 1986
故里飘歌
故里飘歌 2021-02-07 09:14

In which file should I define application-wide constants that are specific to my cakephp app?

3条回答
  •  忘了有多久
    2021-02-07 09:50

    @travis:

    i think its better to use the configs file (and configure class) for such dev/staging stuff

    the bootstrap is more like the "general" more hardcoded stuff - all app configs together the configs are the "variant" config arrays.

    just my 5 cents.

提交回复
热议问题