CakePHP

Page 80

09775ch05final

58

7/1/08

9:42 PM

Page 58

CHAPTER 5 â– CREATING SIMPLE VIEWS AND BAKING IN THE CONSOLE

Pretty boring, eh? You can spice this up by simply editing the app/webroot/css/styles.css file. In this file, paste the code shown in Listing 5-2 or do something similar. Listing 5-2. Sample CSS Code for the Default Layout * { font-family: "Lucida Grande",Lucida,sans-serif; } th { font-size: 14px; font-weight: bold; background-color: #e1e1e1; border-bottom: 1px solid #ccc; padding: 10px; } div.actions ul { list-style-type: none; } Refresh the Posts controller, and you should get some new styles in the display (see Figure 5-2).

Figure 5-2. The new styles are reflected in all views.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.