Thank you for this post (of about 8 months ago...) it saves me a lot of time. But IMHO this behaviour should be avoided in some way by Zend_Form itself, it can be source of a lot of problems when using dojo only in a couple of pages (as in my case).
In every case, I solved my problem using your code in my form base class. Hope that this will not bring any problem in the future releases. Bye. Matthew Weier O'Phinney-3 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); > } > -- > Matthew Weier O'Phinney > Software Architect | [email protected] > Zend Framework | http://framework.zend.com/ > > -- View this message in context: http://www.nabble.com/unable-to-disable-Dojo-tp20830062p24857161.html Sent from the Zend Framework mailing list archive at Nabble.com.
