php 运行 application,PHP 运行时配置

yaf.libraryThe global library path, Yaf_loader will search global library in this

directory.

yaf.action_preferIf there is only one part in PATH_INFO, should it consider as a

controller or action.

If this configure On, it will be considered as a Action name.

yaf.lowcase_pathWhether lowercase all the path during the class autoloading.

yaf.use_spl_autoloadWhen this value is On, if Yaf_Loader can not

find a class, it will return FALSE, then give chance to other auto

load function to be called.

When this value is Off, if Yaf_Loader can not

find a class, it will return TRUE, and make the class autoloading

failed immediately.

Note:

Yaf will register its loader during a instantiation of

Yaf_Application, so any other auto loaders

which is register before the instantiation will be called before

When this value is Off(default),

TRUE.

yaf.forward_limitThe max forward count, default is 5. that means you can have a max

value of 5 in the forward stack.

This is a protection for prevent recursive

yaf.name_suffixWhen this On, Yaf_Loader will identify a class by it's suffix to decide

whether it is a MVC Class.

When this Off, Yaf_Loader will look at the prefix of the class name.

yaf.name_separatorWhen this is not empty, Yaf_Loader will identify the class suffix and

string value of this.

For example, when this value is "_", Yaf_Loader will take Index_Controller as

a Controller Class, IndexController as a normal class.

yaf.cache_configIf this is On, and in the meantime you are using ini config file as the

parameter of Yaf_Application(), the

compiling result of the ini config file will be cached in the PHP

process.Note:

Yaf examine the mtime of the ini file, if it was changed since

last compiling, Yaf will reload it.

Warning

Yaf use the ini file path as the cache entry key, so do use the

absolute path in ini file path, otherwise there might be some

conflicts if two application use the same relative path of ini

config.

yaf.environThis value is "product" by default, used for Yaf to fetch the config

section of a ini config file.

That is, if this value is "product", Yaf will use the section named

"product" in the ini config file(the first parameter of the

Yaf_Application) as the final config of the

Yaf_Application.

yaf.use_namespaceOnly works as of PHP 5.3, if this value is On, All classes of Yaf will

named in namespace style.

For example:

Yaf_Route_Rewrite => \Yaf\Route\Rewrite

Yaf_Request_Http => \Yaf\Request\Http

There is a exception, that is some classes like

Yaf_Controller_Abstract.

The last component is a keyword of PHP, could not be used as a class

name, so for such classes:

Yaf_Controller_Abstract => \Yaf\Controller_Abstract

Yaf_Route_Static => \Yaf\Route_Static

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值