I'm having a few problems to setup dojo with a module I'm using ; here's my code :
$this->dojo()->setCdnBase( Zend_Dojo::CDN_BASE_GOOGLE )
->setCdnDojoPath( Zend_Dojo::CDN_DOJO_PATH_GOOGLE )
->addStyleSheetModule( 'dijit.themes.tundra' )
->setDjConfigOption('parseOnLoad', true)
->setDjConfigOption('debug', true)
->setDjConfigOption('debugAtAllCosts', true)
->registerModulePath('baseUrl', '/')
->registerModulePath('dge', '/scripts/dge')
->useCdn();
Now the cdn is working ok, but I can't use the dge module. I don't know if the baseUrl is supposed to work this way.
I'm trying to get the following result :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.2.3/dojo/dojo.xd.js.uncompressed.js"
djConfig="parseOnLoad: true, baseUrl: './', modulePaths: {dge: '../scripts/dge'}, debug:true, debugAtAllCosts:true"></script>
Any idea how ?
Z.
--
My zend framework experience... the good, the bad
http://myzendframeworkexperience.blogspot.com/
Découvrez tout ce que Windows Live a à vous apporter !
没有评论:
发表评论