本文分析了Zend Framework設定檔application.ini用法。分享給大家供大家參考,具體如下:
最方便,常用的設定方式使用設定檔。設定檔的特定相關設定的選項如下:
php.ini的相關的設定選項,具體格式如下:
phpSettings.設定選項,例如
phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1
引導類別的位置
includePaths.library = APPLICATION_PATH "/../library" includePaths.zend = APPLICATION_PATH "/../../Library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
autoloadernamespaces.app = "App_"
resources.frontController.params.displayExceptions
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.modules[] =
resources.frontController.plugins.layout = Abc_Controller_Plugin_Layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
日誌的設定
resources.layout.layout = default
希望本文所述對大家PHP程式設計有幫助。
更多Zend Framework教程之設定檔application.ini解析相關文章請關注PHP中文網!