configuration - Zend Framework - Loading View Helpers from Modules -
I want to get to load a modular application and module-specific view helpers in an'm putting with Zend Framework I'm struggling. My directory structure is ... Basically I think that in currentUser.php I want to use Visual Assistant but when I put I get an error stating that the file was not found. Do I need to load these assistants to add to my config file? My config this ...
application --- configuration --- controllers --- forms --- layout --- model --- of module Is like --- --- User --------- Controller --------- form --------- Module --------- View - ----- ------ Filter ------------ Helpers --------------- currentUser.php ------- ----- Script --------- Bootstrap.php --- Thoughts --- Bootstrap.php
is something like 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 "/ controller" resources .frontController.moduleDirectory = APPLICATION_PATH "/ modules" resources.layout.layoutPath = APPLICATION_PATH "/ layouts / scripts /" resources.view [] = resources.modules [] =
I have worked it out ...
What was the need to do to add this row to the fig file>: user.resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH "/ module / user / views / assistants"
Comments
Post a Comment