Oct 31 2007

CakePHP and paths

Category: CakePHP, Programmingpaomic @ 3:31 pm

I had a problem related to CakePHP and url. I found some articles, such as this or this, but I still can’t find a solution. I try to access a file in the app/webroot directory, but using www.mysite.com/myfile.jpg or www.mysite.com/app/webroot/myfile.jpg don’t work…

Any help or ideas?

Edit: I made a few mistakes, so I was using the wrong path, with the correct path it works fine.

PS: the images are placed in the main webroot directory, but they are accessed using website.com/app/image.ext

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • blinkbits
  • BlinkList
  • blogmarks
  • BlogMemes
  • blogtercimlap
  • Blue Dot
  • Book.mark.hu
  • Bumpzee
  • co.mments
  • De.lirio.us
  • Fark
  • feedmelinks
  • Fleck
  • Furl
  • Gwar
  • kick.ie
  • Linkter
  • Ma.gnolia
  • MyShare
  • Netscape
  • NewsVine
  • Scoopeo
  • Simpy
  • Slashdot
  • Smarking
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Webride
  • YahooMyWeb
Post Tagged:

Leave a Reply