4
我在Zend Framework中組合了一個模塊化應用程序,並且努力獲取模塊特定的View Helpers來加載。Zend Framework - 從模塊加載視圖助手
我的目錄結構是這樣的......
application
---configs
---controllers
---forms
---layouts
---models
---modules
------user
---------controllers
---------forms
---------modules
---------views
------------filters
------------helpers
---------------currentUser.php
------------scripts
---------Bootstrap.php
---views
---Bootstrap.php
基本上我想訪問包含在currentUser.php視圖助手,但是當我把
<?php echo $this->currentUser(); ?>
我得到一個錯誤指出該文件無法找到。
我需要添加到我的配置文件加載這些幫助?
我的配置是這樣的......
Autoloadernamespaces[] = "Zend_"
Autoloadernamespaces[] = "Default_"
Autoloadernamespaces[] = "User_"
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.view[] =
resources.modules[] =