php - Zend_Form custom decorator on element using config ini -


i'm trying setting-up 1 custom decorator on 1 of elements. want in ini file. i'm experiencing issues other settings.

there's collision between :

;remove tags don't need decorators.formelements.decorator = formelements decorators.form.decorator = form decorators.formerrors.decorator = formerrors  ;i can't use element decorator because of these 3 lines elementdecorators.viewhelper.decorator = viewhelper elementdecorators.label.decorator = label elementdecorators.description.decorator = description 

and custom decorator :

elementprefixpath.decorator.prefix = "my_decorator" elementprefixpath.decorator.path = "my/path/to/decorators/"  elements.numero.options.decorators.simpleinput.decorator = "simpleinput" 

my way add anyway via php

$v_form = new custom_form(); $v_element = $v_form->getelement(custom_form::numero); $v_element->setdecorators(array('simpleinput')); 

of course it's working want setting-up forms via config files. use php specific cases (like in builder classes : alternate versions according user profils etc.).

to me there's collision because of priorities. or sets form decorators after element 1 (so removes it).

am doing right , there way force accept both settings ?

by way, english not mother language , i'm new stackoverflow. hope didn't break rules.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -