0
時,當我在application.ini
註冊視圖助手,我必須確保有不APPLICATION_PATH
和/my/view/helper/path
之間的空間。例如:路徑問題登記在的application.ini(ZF 1.11)Zend的視圖助手路徑
; Note that there is not a space after APPLICATION_PATH.
; This is the only way that I can get the helper path registered
resources.view.helperPath.MyNamespace_Zend_View_Helper = APPLICATION_PATH'/my/view/helper/path'
下將無法正常工作,因此拋出一個異常,指出「插件」沒有被發現,這當然是「Zend的」爲「說我無法找到路徑上您的課「:
; Note the space directly after 'APPLICATION_PATH' - this will not work!
resources.view.helperPath.MyNamespace_Zend_View_Helper = APPLICATION_PATH '/my/view/helper/path'
爲了讓這個觀點更加複雜一些,這個空間在所有其他情況下都起作用。例如:
; All three of the following examples have a space
; after APPLICATION_PATH - and they work!
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"