Issues

ZF-7331: dojo is not work when i use it in one action not the defualt indexAction() , the error: the dojo.js is nto defined!

Issue Type: Bug Created: 2009-07-20T20:44:02.000+0000 Last Updated: 2009-11-19T12:04:57.000+0000 Status: Resolved Fix version(s): Reporter: yao junqiang (hack_yjq) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: Attachments:

Description

dojo is not work when i use it in one action not the defualt indexAction() , the error: the dojo.js is nto defined!

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-07-21T04:08:48.000+0000

Right now, there is simply not enough information to diagnose the issue.

Are you calling setLocalPath()? If so, have you actually added Dojo to your document_root?

If you are using Dojo via the CDN, what version of Dojo are you specifying? and which CDN? and do you have internet connectivity when you test?

Posted by yao junqiang (hack_yjq) on 2009-07-22T01:43:14.000+0000

first step, I make a dir named "js" in the public directory, I copy the dojo library in the dir "js" second step, in the Bootstrap.php protected function _initDoctype() { $this->bootstrap('view'); $view = $this->getResource('view'); $view->doctype('XHTML1_TRANSITIONAL'); $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); }

3th step, in the layout.phtml

dojo()->isEnabled()){ $this->dojo()->setLocalPath('js/dojo/dojo.js') ->addStyleSheetModule('dijit.themes.tundra'); echo $this->dojo(); } ?> forth step, A controler named UserControler.php , there is a loginAction() ,in the login.phtml view file, dojo()->enable() ->setDjConfigOption('parseOnLoad', true) ->setDjConfigOption('isDebug', true) ->requireModule('dojo.io.script'); ?> if i request , , the problem will come , " dojo.js is not defined!"

why?

Posted by Max Gordon (mgordon) on 2009-08-09T12:52:13.000+0000

Have you tried adding a / to your dojo path?

<pre class="highlight">
$this->dojo->setLocalPath('/js/dojo/dojo.js');

Posted by Matthew Weier O'Phinney (matthew) on 2009-11-19T12:04:57.000+0000

Reporter has not responded to last question in > 3 months.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts