(on Tuesday, 31 March 2009, 09:52 PM +0200):
> 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 ?
IIRC, you cannot mix local modules with CDN -- you either have to use
only the CDN OR use all local resources.
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论