php中configuration,PHP Application Configuration

application.directoryThe directory of the application, that is the folder which contains the

"controllers", "views", "models", "plugins" folders.

Note:

This config entry is the only one which doesn't has a default value, which means you should

always define it.

application.extThe file ext of the PHP script, used in class autoloading(

Yaf_Loader).

application.view.extThe file ext of the view template script.

application.modulesA comma-separated list of the registered modules, used in the route

process, especially while there are more than three segments in the PATH_INFO,

Yaf need a way to find out whether the first segment is a module name or not.

application.libraryThe local library directory, see Yaf_Loader and

yaf.library.

Note:

As of Yaf 2.1.6, this config entry can also be a array, when it is

array, then the library path will try to use the value of application.library.directory

application.library.directoryAlias of application.library. Introduced

in Yaf 2.1.6

application.library.namespaceA comma-separated prefix of local library namespace.

Introduced in Yaf 2.1.6

application.bootstrapA absolute path of the Bootstrap class script.

application.baseUriUsed to remove a fixed prefix of request uri in route process.

Take a example, comes a request with request uri

"/prefix/controller/action". if you set application.baseUri to

"/prefix", then only "/controller/action" will take as the PATH_INFO in

route process.

In generally, you have no need to set this value.

application.dispatcher.throwExceptionIf this is On, Yaf will throw exception while some error occurring. see

also

application.dispatcher.catchExceptionIf this is On, Yaf will forward to Error controller, Error Action while

there is a uncaught exception. see also

application.dispatcher.defaultRouteThe default Route, if it is not specificed, Static route will be used

as default route, see:

application.dispatcher.defaultModuleThe default module name, see also

application.dispatcher.defaultControllerThe default controller name, see also

application.dispatcher.defaultActionThe default action name, see also

application.systemSet yaf runtime configure in application.ini, like:

application.system.lowcase_pathNote:

only those PHP_INI_ALL configures can be set in this way

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值