Welcome Guest, Not a member yet? Register   Sign In
Organising a web page
#1

[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/


Messages In This Thread
Organising a web page - by El Forum - 03-27-2014, 07:20 AM
Organising a web page - by El Forum - 03-28-2014, 07:04 AM
Organising a web page - by El Forum - 03-28-2014, 09:29 AM
Organising a web page - by El Forum - 03-28-2014, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB