Wednesday, November 30, 2011

Spaces in Filenames (Theme / Themed / Upgrade Cake 1.3 to Cake 2.0)

Okay so I've hit a problem and I have no idea how to fix it.  In Cake 1.3 a file name like /theme/default/images/my image.jpg would work.  In Cake2.0 the url changes to a standard url in the browser address bar (ie. /theme/default/images/my%20image.jpg - with the space replaced with %20). 

So now I have hundreds if not thousands of image files, and some have spaces in them, and they're all broken.   Because Cake no longer knows the file is there. 

Please note, this does not effect files in the app/webroot directory, but only in the theme directory (aka.  /app/View/Themed/Default/webroot/)  For example /app/webroot/test test.html  will work when called by the url /test%20test.html. 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate