-- Ralf Eggert <[email protected]> wrote
(on Tuesday, 11 August 2009, 10:59 PM +0200):
> I am working with Zend_Dojo in ZF 1.9.0 and I have some problems with
> loading the local js files. When I use the CDN in my layout file,
> everything works as expected and dojo.js is loaded:
> 
>     if ($this->dojo()->isEnabled())
>     {
>         $this->dojo()->setCdnBase(Zend_Dojo::CDN_BASE_GOOGLE);
>         $this->dojo()->setCdnDojoPath(Zend_Dojo::CDN_DOJO_PATH_GOOGLE);
>         $this->dojo()->addStyleSheetModule('dijit.themes.nihilo');
>         echo $this->dojo();
>     }
> 
> But when I want to switch to the local path it doesn't work any more.
> 
>     if ($this->dojo()->isEnabled())
>     {
>         $this->dojo()->setLocalPath('/js/dojo/dojo.js');
>         $this->dojo()->addStyleSheetModule('dijit.themes.nihilo');
>         echo $this->dojo();
>     }
> 
> The /js/dojo/dojo.js file exists and is shown when I call it directly in
> my browser. But unfortunately it does not seem to be loaded. When I
> compare the HTML output the only difference is the loading of the css
> and js file as expected.
> 
> Any one any idea what could be wrong with my setup?

What does FireBug tell you?

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to