I'm know how to add custom decorators and use view helpers to set decorators for named elements.
Is their a method or an attribute that would allow me to set a default decorator for all textareas or for all text inputs or all selects?
Thank you
I'm know how to add custom decorators and use view helpers to set decorators for named elements.
Is their a method or an attribute that would allow me to set a default decorator for all textareas or for all text inputs or all selects?
Thank you
是的,您可以为您的 html 对象(如 textarea 或文本框)覆盖默认的 zend 装饰器
这是创建我们自己的 decomrator Link的好例子