Welcome Guest, Not a member yet? Register   Sign In
Multiple Views or db records
#2

[eluser]mddd[/eluser]
The idea of not putting html in a controller or model is valuable, because it makes managing the application easier. In principle, a designer should be able to change the design of the site by only working in the views folder. That's why it is better not to build tables inside a model, etc.

But this doensn't mean that all your content has to be in a view. There can be a difference between the html of your site layout, and the html that is the real content of your site. Imagine a site with 100 000 pages.. they can never be all views. They should be in a database!

So, html-content in the database - fine. Building pieces of html in a model or controller - not so fine, because it makes maintainance harder.


Messages In This Thread
Multiple Views or db records - by El Forum - 06-02-2010, 09:39 PM
Multiple Views or db records - by El Forum - 06-03-2010, 12:54 AM
Multiple Views or db records - by El Forum - 06-03-2010, 06:43 AM
Multiple Views or db records - by El Forum - 06-03-2010, 06:47 AM
Multiple Views or db records - by El Forum - 06-03-2010, 06:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB