How to use default.ctp in cakephp

Posted by Louis Stephens on Stack Overflow See other posts from Stack Overflow or by Louis Stephens
Published on 2010-06-16T14:02:02Z Indexed on 2010/06/16 14:12 UTC
Read the original article Hit count: 141

Filed under:

I just finished the "15 min Blog Post tutorial" included in the documentation for cakephp. I was asked for another tutorial to change the layout for first tutorial.

However, I am fairly new to MVC programming/Cakephp and I have no real clue how to do so. Well, I know I need "default.ctp" placed in app/views/layouts/ and I presume I need to include to include my data? . . .

I am really at a loss of what to do. I set up my default.ctp as I mentioned above, but when I go to localhost:9999/posts the layout is still the same. I guess I need to include a stylesheet (and if so, where?)

I guess if someone can point me in the right direction to a beginner's guide to layout styling or how to use it I would greatly appreciate any help.

© Stack Overflow or respective owner

Related posts about cakephp