I am having problems in setting up dojo in ZF. Here are my steps:
1. Download Dojo on Zend Framework standard incubator and place it in my
Zend lib.
2. Add Dojo view helper in Bootstrap.php:
Code:
$view->addHelperPath(
self::$root . '/library/Zend/Dojo/View/Helper',
'Zend_Dojo_View_Helper_'
);
3. Tell dojo to use local path or CDN version in Bootstrap.php:
Having <?php echo $this->dojo() ?> in my layout script.
In case i want to use my local path, I was getting a "dojo is undefined"
error showing up in firebug. So i think my path was setting up wrong. I
placed the dojo lib inside js folder of the root:
Code:
$view->dojo()->setLocalPath('/js/dojo/dojo.js')
->addStyleSheetModule('dijit.themes.tundra');
I couldn't figure that out so i changed to use CDN version:
Code:
$view->dojo()->setCdnVersion('1.1.1');
The page started loading dojo but having an error showing in firebug:
Code:
Permission denied to get property XULElement.accessKey
XPCSafeJSObjectWrapper.cpp
Line 445
And also when I viewed source, the import CSS tundra was placed in a comment
tag:
Code:
<style type="text/css">
<!--
@import "http://o.aolcdn.com/dojo/1.1.1/dijit/themes/tundra/tundra.css";
-->
</style>
Googling a while but not many topics on Dojo - ZF integration, and I'm a
newbie so I post it here.
All help is much appreciated,
Hung Nguyen
--
View this message in context:
http://www.nabble.com/Steps-to-integrating-Dojo-with-Zend-Framework--tp18561545p18561545.html
Sent from the Zend Framework mailing list archive at Nabble.com.