Will creates nice web-things, builds awesome ideas, and collaborates with other creative types.

Home > Blog > Fresh Installs Of Cakephp Missing CSS styles

Fresh Installs Of Cakephp Missing CSS styles

by Will on Oct 24th 2010, 20:55

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
  1. <ifmodule mod_rewrite.c="">
  2.    RewriteEngine on
  3.    RewriteRule    ^$ app/webroot/    [L]
  4.    RewriteRule    (.*) app/webroot/$1 [L]
  5. </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!

Fresh Installs Of Cakephp Missing CSS styles cakephp noob

blog comments powered by Disqus