Fresh Installs Of Cakephp Missing CSS styles
Just a quicky because i just spent 20 mins scratching my head on this. When you first copy cakephp into your websites folder, and navigate to the homepage expecting to see the "It works" page guiding you through setting up all the config settings and creating your first controllers, you might be faced with a dull page with no css styling.
This is because OSX does not show system files beinging with a "." by default, and so when you copied / dragged all the files and folders from one finder window to the next, you missed the all important file. Create a .htaccess file in the root of the installation with the following code:
Show Plain Text- <ifmodule mod_rewrite.c="">
- RewriteEngine on
- RewriteRule ^$ app/webroot/ [L]
- RewriteRule (.*) app/webroot/$1 [L]
- </ifmodule>
And you are done! You should now be faced with pretty cakephp branding, and nice yellow, green and red notice boxes. You are ready to start baking!
