Hidden elements decorators
Closed this issue · 2 comments
There's a slight problem with decorators for hidden elements: because Zend_Form::__construct()
calls $this->init()
and Twitter_Bootstrap_Form_*
calls $this->setElementDecorators(...)
after parent::__construct()
it is not possible to remove bootstrap decorators from hidden elements.
Unless of course by overloading Zend_Form::render()
... but maybe this can be avoided
I think it's the same case of the PR you made before. We're going to move all the parent::__construct
in order to allow adding custom decorators at the Zend_Form::init
method.
Regards,
Christian.
All the parent::__construct
calls on the forms have been moved to the bottom of the constructor body. Now, custom decorators can be added using Zend_Form::init
method.
Regards,
Christian.