ZF-2745: Add ViewRenderer inflection awareness to Zend_View
Currently, there are two different conventions for resolving view scripts:
- With the ViewRenderer, the action alone is enough for resolving most view scripts; in fact, unless you call out to special methods of the ViewRenderer such as renderScript(), you never need to consider the controller directory or view suffix.
- Inside the view script itself, however, you need to be aware of the controller directory and view suffix, as well as where other view scripts and partials reside within the view script paths.
We should add functionality to Zend_View to allow view script resolution using the ViewRenderer or separate this coupling into a separate class that both the ViewRenderer and Zend_View could utilize. This could be on by default, unless no controller directories are found in Zend_Controller_Front (or unless the developer has disabled such functionality).