In addition to the below I can't set the element prefix path either.
If I set it in the construct of my form class (extending Zend_Form) I get
nothing, however if I move it to the init() method it works perfectly.
My structure is CustomForm -> My Form -> Zend_Form I don't understand why
it's not working and it must be being overwritten after the constructor?
(The constructor in my form calls the Zend_Form constructor before doing
anything).
Thanks would be great to see where I'm missing this!
SiCo007 wrote:
>
> Hi, I'd like to add the following to the suffix of my labels...
>
> *
>
> I've found the optionalSuffix / requiredSuffix... Maybe a suffix and
> prefix option should be added too to make it even simpler to set : on
> every label (if it's not already obviously).
>
> Anyway back to my problem, I figured the best way was to extend the
> current label decorator, but I can't get it to use my class.
>
> I create an extension of Zend_Form and in the construct I call
> addElementPrefixPath() (or addPrefixPath()) as well as
> parent::__construct($options);.
>
> $this->addElementPrefixPath('SiCo_Form_Decorator', 'SiCo/form/decorator',
> 'decorator');
>
> But nothing happens, do I need to call this at another time or should I
> pass it in the options to Zend_Form __construct()?
>
> Am I doing this right or have I got the call in the wrong place? Is the
> stack being reset?
>
> Thanks
>
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context:
http://www.nabble.com/Zend_Form-HTML-in-Labels-%28Custom-Decorators%29-tp19286308p19292904.html
Sent from the Zend Framework mailing list archive at Nabble.com.