Am I on the right track?

layouts/default.thtml:         (for the home/start page)

div header (static)
renderElement(header)

div menu (dynamic -> must be able to indicate which page is "active")
renderElement(menu, array())

div  content (dynamic -> showing articles i.e. blog)
render("blog/index/")

div sidebar right (dynamic -> showing latest 2 posts on forum + 2 news
(news table) + poll using ajax)
$posts = requestAction("posts/latest/")
foreach ...
$news = requestAction("news/latest/")
foreach ...
render("poll/index/", array('return' => true))

div footer (static)
renderElement(header)


A few questions:

-> Can I re-use this layout file for my subpages or do I have to create
a new one?
-> Should I have used the $content_for_layout variable in the example
above?

thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to