-- Andrew Yager <[EMAIL PROTECTED]> wrote
(on Wednesday, 10 September 2008, 12:39 AM +1000):
> I suspect I'm just doing something inanely stupid and wrong, but I can't 
> get Zend_Dojo form elements to work.
>
> The page seems to load OK, and the form is visibly there, but there are 
> JS errors which seem to prevent the Dojo elements from showing up.

There are a few things you should try.

First, change your rewrite rules slightly. Many dijits have 
templates they need to fetch from the server, and the "standard" rewrite
rule we have in our docs may be preventing that. Try the following:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ /index.php [NC,L]

Second, if that does not work, a number of users have reported issues
with the source build shipped with ZF. You have three options:

  * Use the CDN
  * Download a Dojo build from the Dojo site
  * Create a custom build using the shipped Dojo source build
    This can be done by going into the util/buildscripts/ directory of
    Dojo and executing either 

        build_release.sh 
    or
        build.sh profile="standard" action="release" releaseName="dojo" 
version="1.1.1"
    Both will create a build in the release/ subdirectory of the dojo
    install.


-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to