Ok, so I want to create a database with all the data of the site. This is no problem however, for those items that exist only once, what should I do?
For instance, on the homepage, the intro text is changed by a user frequently, how to store this in the db? There are 6 additional items on the homepage that are change frequently by the user.
My thought was to create a table that has those 6 items as columns and the table would only have one row. Would this be ok from a database design point of view?
You could do it like that:
You could load all variables for a page like that:
And in your code you would retrieve some collection which you could use like that: