application.testing.ini 1.57 KB
[common]
;;默认项目
application.directory = APPLICATION_PATH  "/application"
;;website library
application.library = ROOT_PATH "/library"
;;默认模块
application.modules = "Index,Category,Channel,Guang,Passport,Product"
;;加载
application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
;;view文件的扩展名
application.view.ext = "phtml"
;;默认layouts
application.layout.path = APPLICATION_PATH "/application/layouts"
;;layouts 默认文件
application.layout.default = "default"
;;默认Controller
application.dispatcher.defaultController = "index"
;;默认Action
application.dispatcher.defaultAction = "index"

;;初始化命名空间
application.namespaces = "Action,Api,LibModels,Plugin"

;;使用composer
composer.autoload = 0
composer.path = APPLICATION_PATH "/library/Package"

yaf.use_namespace = 1

;;调试模式
[testing : common]
application.debug = True
application.servers.config = APPLICATION_PATH "/configs/core"

;出错的时候是否抛出异常
application.dispatcher.throwException = True

;是否使用默认的异常 捕获Controller, 如果开启,  在有未捕获的异常的时候,
;控制权会交给ErrorController的errorAction 方法,
;可以通过$request->getException()获得此异常对象    False
application.dispatcher.catchException = True

;模板预编译目录,该目录需要有读写权限
application.template.compile = ROOT_PATH "/compile/m.yohobuy.com"
application.template.path = ROOT_PATH "/template/m.yohobuy.com/actions"
application.template.partials = ROOT_PATH "/template/m.yohobuy.com/partials"
application.template.ext = ".phtml"