我刚刚开始学习Zend Framework 1.12.9。我无法理解如何使用application.ini文件。所以,我的问题更容易理解,我将举一个例子:
`; 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。所以我无法理解这个文件的语法以及路由是如何做的。
`resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"`
这意味着这条线? Mybe有人可以给一些良好的结局链接...我会很感激。 提前谢谢!!!
答案 0 :(得分:1)
您可以在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
仅供参考,第一个版本是旧版本。也许你应该考虑使用ZF2。