ZF-7939: Dojo bootstraping by resource plugin (Zend_Application_Resource_Dojo)
Description
It will resource plugin that helps automate Dojo bootstraping to ZF application.
For integrating Dojo only need it add to application.ini (or other config):
resources.dojo.djConfig.isDebug = 1 resources.dojo.djConfig.parseOnLoad = 1 resources.dojo.cdnVersion = "1.3.2" resources.dojo.localPath = "/js/dojo-toolkit/dojo/dojo.js" resources.dojo.requireModule[] = "dojo.io.script" resources.dojo.requireModule[] = "dojo.fx" ... and other settings available for setting in Zend_Dojo_View_Helper_Dojo_Container
Comments
Posted by Georgy Turevich (georgy) on 2009-09-23T11:29:05.000+0000
Realisation of resource plugin will be much ease with setOptions method that proxies values to setters of container
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-09-24T17:22:35.000+0000
Matthew; I just assigned this issue to me so I can do it this weekend. After that I'll ask you for review (assuming you even want it in ZF).
Posted by Matthew Weier O'Phinney (matthew) on 2009-09-25T05:21:11.000+0000
Dolf -- sure. Note that this issue is dependent on ZF-7938 -- completing that makes this issue trivial to accomodate.
Posted by Georgy Turevich (georgy) on 2009-09-25T05:30:37.000+0000
Dolf, we discuss this in mail list http://nabble.com/Dojo-proposal%3A-What-do-you-thiā¦
Posted by Georgy Turevich (georgy) on 2009-10-18T23:30:51.000+0000
In Zend/Application/Resource/Dojo.php on 62 line you call Zend_Dojo but dint require_once 'Zend/Dojo.php'. Is it normally for Zend_Application_Resource_* classes?
What about useProgrammatic option? I wrote about it in #ZF-7939.
Posted by Matthew Weier O'Phinney (matthew) on 2009-10-19T22:26:00.000+0000
Georgy: yes -- since autoloading is in play whenever you use Zend_Application, there's no need for the various Zend_Application_* classes to have require_once statements on their dependencies.
RE: useProgrammatic option -- yes, if it's not available via the resource, it should be. Dolf -- have you addressed this?
Posted by Georgy Turevich (georgy) on 2009-10-31T18:31:24.000+0000
Dolf,
in DojoTest.php
Are you realy shure that you testing Zend_Application_Resource_Dojo ? :)
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-10-31T19:07:07.000+0000
Guess I copy/pasted just a bit too much. Thank you for reporting, will do within 24 hours, I think.
Posted by Georgy Turevich (georgy) on 2009-11-20T13:49:26.000+0000
Dolf, in the end of a file even now there is a code
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-11-20T13:58:10.000+0000
I'm blind obviously. Thank you for checking it out ;)