Hi, i hope help you lets see:
-> When do I need to create new layouts? you just have to create one layout, the default layout. Then you just to have to create the views files that only have the content. -> How is the $content_for_layout supposed to work? the $content_for_layout works like a container in default layout that will received all content from views. I hope helping you, sorry my bad english! Daniel Gomes 2007/1/3, dani <[EMAIL PROTECTED]>:
Sorry for not being clear! What I really am looking for, is a way to substitute the "usual (old-fashioned) php practice" of including content based on i.e. GET variables. What is the counterpart in CakePHP and what is the BEST practice (... or at least a good one ...)? In detail: -> When should I use controllers? -> When is it suitable to add pages under the "pages" directory? -> When do I need to create new layouts? -> How is the $content_for_layout supposed to work? -> What should be placed inside the "elements" folder? ... to sum up: Is there a holy grail in website development using CakePHP / MVC thinking? On 3 Jan, 23:31, "TJSingleton" <[EMAIL PROTECTED]> wrote: > As aforementioned, more info is really needed. But I think you will > only need one layout, you can use two views. One with two columns and > one with three. >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---