weierophinney wrote: > > -- Guillaume Oriol <[email protected]> wrote > (on Thursday, 04 December 2008, 11:40 PM -0800): >> Thank you Matthew for your answer >> but I don't use Zend_Dojo_Form in my form, neither any Dijit. >> My form extends Zend_Form. >> >> Why would ZF enable Dojo in such a case? > > I know what's going on. > > There is a standard view helper, Form, and one of the same name in the > Zend_Dojo_View_Helper tree. Because your view object has been > initialized with the Dojo view helper path, it's finding the Dojo Form > view helper and using that over the standard one. > > The easiest way around this is to, in your form's render method, remove > the Dojo view helper path: > > public function render(Zend_View_Interface $view = null) > { > if (null === $view) { > $view = $this->getView(); > } > $loader = $view->getPluginLoader('helper'); > if ($loader->getPaths('Zend_Dojo_View_Helper')) { > $loader->removePrefixPath('Zend_Dojo_View_Helper'); > } > return parent::render($view); > } > >
How about filing this as a BUG, then? I didn't check ZF's bug tracking system, but it's been almost a year and it was never fixed. -- View this message in context: http://old.nabble.com/unable-to-disable-Dojo-tp20830062p26204661.html Sent from the Zend Framework mailing list archive at Nabble.com.
