enable Dojo support for Forms just on demand in Zend Framework
- by Mike
How to have Dojo support disabled by default and just enable it if you want to use it ?
I have the problem that dojo support is automaticly loaded when using any form.
Even without any dojo elements.
I have following configuration:
Bootstrap file
if($this->dojo()->isEnabled()){
$this-dojo()-setLocalPath($this-baseUrl().'/js/dojo/dojo/dojo.js')
-addStyleSheetModule('dijit.themes.tundra')
-setDjConfigOption('usePlainJson',true);
echo $this-dojo();}
I thought to enable dojo I had to use explicit use something like this in my template/view file:
$this->dojo()->enable();
How the tell Zend Framework not to use Dojo by default for Forms ?