After using my own framework for over a year, I finally gave in to using Cake as my new job needed it. When I installed Cake to my local system and then later to my shared hosting platform it wouldn’t use the default CSS and wouldn’t display pretty URLs correctly. For example I had to write localhost/cake_test/index.php/todos instead of localhost/cake_test/todos. This was a .htaccess issue and I couldnt find them coz OS X hides files starting with a dot thinking its a system file. I found a terminal command that could be run and then reboot to view files starting with a dot but I was not very keen on using that.
I could access the .htaccess files from the File>Open command of an IDE and learnt that one of the three .htaccess files was missing. I extracted these again from the downloaded zip and renamed them
root.htacess (from the parent cake folder)
app.htacess (from the app folder)
webroot.htacess (from the webroot folder
)
Then I uploaded (using FireFTP) to the correct folders online and renamed them by removing the part before the dot. The files obviously vanished on renaming. Now when I refreshed the browser window, I could get pretty URLs + default CSS!
Here is a downloadable version of the .htaccess files
htaccess
Just a passing thought, TextMate text highlights .ctp files pretty nicely!