enable Dojo support for Forms just on demand in Zend Framework
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-03-16T14:02:11Z
Indexed on
2010/03/16
14:06 UTC
Read the original article
Hit count: 337
dojo
|zend-framework
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 ?
© Stack Overflow or respective owner