[eluser]Bisquite[/eluser]
I am currently getting to grips with the MVC framework and have some questions around the best way to structure my models, views and controllers.
I am a traditional web developer, writing whole web pages with HTML and php.
I want to have a website homepage with a header and a footer, and in the main body of the page would be a sidebar and maybe a larger news section. The sidebar would contain 3 tables of information dynamically pulled from the database (3 separate database queries), and similarly the news section would display a large article and the 3 most recent articles below it, slightly smaller.
Given this setup, what kind of arrangement of MVC elements should I be aiming for? Is it one view for each of the header, footer, sidebar and news section? Or is it one view for each of the 3 sidebar elements, 1 view for the large news section and another for the smaller news articles?
And also, does each view have a controller?
Any links to good examples would be greatly appreciated!
Thanks for any assistance.
b/