weierophinney wrote
> 
> How are you rendering the form and/or elements, exactly?
> 
> You should be doing at least one of the following:
> 
>  * $form->setView($this)
>  * $form->render($this)
> 
> These ensure that the renderer is pushed down into the tree; otherwise,
> an instance will be lazy-loaded for you -- which would cause you to lose
> any configuration you previously had.
> 

I am injecting the view renderer into the base form class via DI:



All my forms are injected into service classes via the DI, e.g.



And an example of the form in the service class:



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Form-ViewScript-Decorator-tp4623823p4642924.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to