ZF-11108: "appnamespace" does not register Zend_View_Helper path.

Issue Type: Bug Created: 2011-02-23T00:45:59.000+0000 Last Updated: 2011-02-23T00:46:51.000+0000 Status: Open Fix version(s): Reporter: Billy O'Neal (billyoneal) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Loader

Related issues: Attachments:


Using the default directory layout, the documentation suggests that one should be able to place views at APPLICATION_PATH /views/helpers, using "View_Helper" as the marker, and have that be loaded by Zend_View.

(The specific doc is…)

The Module Resource Autoloader normally looks for the "appnamespace" entry in the ini file, and uses that as the prefix for the given resources. Therefore, if I set my appnamespace to "Cas", then I should be able to put Cas_View_Helper_HeadLine in the $/views/helpers directory, and have it be loaded. However, it is only loaded if the prefix is "Zend_" instead of the given appnamespace.

There is a workaround; to place the following in your application configuration file:

<pre class="highlight">
resources.view.helperPath.Cas_View_Helper = APPLICATION_PATH "/views/helpers/"


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.