Hi,
IMHO, current implementation of view helpers is a bit odd. I see no point in
current naming convention (why special method name instead of fixed
interface?).
Furthermore, I see no normal way to configure the helper pathes/prefixes. If
I understand it right, I intended to put my helpers to
application/view/helpers and give a class Zend_View_Helper prefix. Changing
it breaks the idea.
I suppose it would be better to add and init script to helpers directory
(something like __init__.php) and extend Zend_View to allow register helpers
(something like registerHelper('helperName', callable $callback) and
registerLazyHelper('helperName', $className, $methodName, $file = null)).
The view object should handle setting the helper directory by including this
init script thus providing self instance to it.
--
View this message in context:
http://www.nabble.com/Zend_View-enhancement-tf4769313s16154.html#a13642063
Sent from the Zend Framework mailing list archive at Nabble.com.