Re: Setting decorators options for form elements in config
Thank you for your solution.
If I still set all decorators in config any idea what should I use for
html tag to have the id working properly? Below I just pasted the
array('callback' => array(get_class($this), 'resolveElementId')) taken
from code (which obviously won't work properly):
> Am 31.08.2012, 11:36 Uhr, schrieb Cristian Bichis <[hidden email]>:
>> However, if I only set the description one decorator (see below) the
>> other decorators are not loaded anymore...
> The config key "decorators" calls the method "setDecorators" and this
> method need all decorators for an element.
>> There is any way from config to only overwrite one decorator without
>> removing the others?
> In the config file: no.
> Simple solution for your problem: set the "escape" option for all
> "description" decorators to "false".
> Kind regards,
> One sample is when I want the Description to contain a link to a page.
> With default behaviour the escape is escaping the link. I can easily
> change this with this:
> But I would like to actually have this set in my form config directly.