application.ini - How it works

℡╲_俬逩灬. 提交于 2019-12-13 03:35:08

问题


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`

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"`

That means this lines? Mybe someone can give some link to good totorial please... I will appreciate it. Thank you in advance!!!


回答1:


You can find tutorial about these particular config params at http://framework.zend.com/manual/1.12/en/zend.application.available-resources.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

FYI, the first version is an old one. Perhaps you should consider using ZF2.



来源:https://stackoverflow.com/questions/26820528/application-ini-how-it-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!