Issue Type: Improvement Created: 2011-04-16T23:31:25.000+0000 Last Updated: 2011-04-17T16:03:25.000+0000 Status: Resolved Fix version(s): Reporter: Stephen Rees-Carter (valorin) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View
Related issues: Attachments:
By default, when using the ./application/views/helpers/ folder for custom View Helpers, the default prefix for classes is 'Zend_' and as far as I can tell, you need to use this if you don't want to add helper paths in the bootstrap/application.ini.
But why is this so? Why can't this be the application prefix (appnamespace in application.ini)? Or at the very least, accept both by default?
Also, it should be noted that on the Naming Conventions page, it says:
"Note: Important: Code that must be deployed alongside Zend Framework libraries but is not part of the standard or extras libraries (e.g. application code or libraries that are not distributed by Zend) must never start with 'Zend_' or 'ZendX_'." http://framework.zend.com/manual/en/…
This tells me that using Zend_View_Helper_* for custom view helpers is actually against the Naming Conventions...
Posted by Matthew Weier O'Phinney (matthew) on 2011-04-17T16:03:14.000+0000
This is a legacy issue. When we first developed this functionality, the default module did not have a module "namespace" (currently, it's "Application"). Since we needed a vendor namespace for the helpers, we used "Zend_View" as the base.
Changing this at this time would break many applications developed prior to 1.8, and, as such, we cannot change this in the ZF 1.X series.
Have you found an issue?
See the Overview section for more details.