application.ini - 它是如何工作的 [英] application.ini - How it works
问题描述
我刚刚开始学习 Zend Framework 1.12.9.我无法理解如何工作 application.ini 文件.所以,我的问题更容易理解,我举个例子:
I'm just start to learning Zend Framework 1.12.9. and I can't understand how to work application.ini file. So, to my question was more understandable, I will give an example:
`; application/configs/application.ini
[production]
; PHP settings we want to initialize
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1`
所以,这是标准示例,然后您开始学习 Zend.所以我无法理解这个文件的语法以及路由是如何做的.
So, this is standart example then you start learning Zend. So I can't understand syntax of this file and how is routing do.
`resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"`
这意味着这几行?Mybe有人可以给一些链接到好的totorial请...我会很感激的.在此先感谢您!!!
That means this lines? Mybe someone can give some link to good totorial please... I will appreciate it. Thank you in advance!!!
推荐答案
您可以在 http://framework.zend.com/manual/1.12/en/zend.application.available-resources.html
如果您从未接触过 ZF1,请继续阅读介绍 http://framework.zend.com/manual/1.12/en/learning.quickstart.create-project.html
If you've never had any experience with ZF1, go ahead and read the introduction http://framework.zend.com/manual/1.12/en/learning.quickstart.create-project.html
仅供参考,第一个版本是旧版本.也许您应该考虑使用 ZF2.
FYI, the first version is an old one. Perhaps you should consider using ZF2.
这篇关于application.ini - 它是如何工作的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!