Zend Framework

Archive for November 17th, 2008

Zend Framework and dojo javascript error

Posted by Faheem Abbas on November 17, 2008

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

Posted in Zend Framework | Leave a Comment »