Zend Framework and dojo javascript error

17 Nov

I have been using the same Zend Framework version in office and at home. In office Dojo is working fine, but at home it was giving error.

I red some articles and forums and found that few other developers were facing the same problem. After working for a lot of time, I finally discover that my htaccess was causing the bug.

The problems can be because of
1. unstable version of dojo that was shipped with previous version of Zend Framework.
2. htaccess can cause this problem- as was in my case.

If you have downloaded a stable version and still facing the same problem, here is the solution.
make slight changes in your htaccess file.
replace

RewriteEngine on
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

with

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php

that’s it. enjoy

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: