Re: Using a different path for image storage

2009-01-20 Thread g4b0
I solved with echo $html->image('/img/news/hawaiiSurf.jpg'); Thank a lot to all!! g4b0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com

Re: Using a different path for image storage

2009-01-16 Thread Kappa
Why not using the html helper in view? $html->image('photo/HawaiiSurf.jpg'); Andrea On Jan 16, 5:40 pm, Stefano Manfredini wrote: > On 16 Gen, 11:48, g4b0 wrote: > > > Hi all, > > I'm trying to put some images in /app/webroot/img/photo, but the > > following html doesn't display anything: >

Re: Using a different path for image storage

2009-01-16 Thread Stefano Manfredini
On 16 Gen, 11:48, g4b0 wrote: > Hi all, > I'm trying to put some images in /app/webroot/img/photo, but the > following html doesn't display anything: > > Uhm, just a simple doubt: did you try ? (are you using the html helper to generate this?) IIRC the dafult config is: img paths are relati

Re: Using a different path for image storage

2009-01-16 Thread grigri
I usually add this to my .htaccess files: # Do not route missing asset requests through cake RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !img/titles RewriteRule ^/?((img|js|css|swf)/.*)$ - [R=404,L] The img/titles rule is an exception b

Re: Using a different path for image storage

2009-01-16 Thread Adam Royle
This error happens when the image doesn't exist, and the request is forwarded to cakephp. Make sure the file is there and case-sensitive if on linux. Cheers, Adam On Jan 16, 8:48 pm, g4b0 wrote: > Hi all, > I'm trying to put some images in /app/webroot/img/photo, but the > following html doesn'

Using a different path for image storage

2009-01-16 Thread g4b0
Hi all, I'm trying to put some images in /app/webroot/img/photo, but the following html doesn't display anything: In addiction, if I point my broser directly to http://mysite.com/img/photo/HawaiiSurf.jpg I get this: Missing Controller Error: ImgController could not be found. Error: Create the