ZF-7939: Dojo bootstraping by resource plugin (Zend_Application_Resource_Dojo)

Issue Type: New Feature Created: 2009-09-23T11:26:49.000+0000 Last Updated: 2009-11-20T13:58:10.000+0000 Status: Resolved Fix version(s): Reporter: Georgy Turevich (georgy) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Dojo

Related issues: - ZF-7938



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[] = "" resources.dojo.requireModule[] = "dojo.fx" ... and other settings available for setting in Zend_Dojo_View_Helper_Dojo_Container


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…

Posted by Georgy Turevich (georgy) on 2009-10-18T23:30:51.000+0000

  1. 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?
  2. 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


in DojoTest.php

<pre class="highlight">
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_LayoutTest::main');
if (PHPUnit_MAIN_METHOD == 'Zend_Application_Resource_LayoutTest::main') {

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

<pre class="highlight">
if (PHPUnit_MAIN_METHOD == 'Zend_Application_Resource_LayoutTest::main') {

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-11-20T13:58:10.000+0000

I'm blind obviously. Thank you for checking it out ;)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.