What's a good data structure for use in MVC web applications to use to pass data into view to ensure standardization and keep the view as non-coder friendly as possible?
A:
Use a custom model class and keep it as non-coder friendly as possible :)
How you construct the model class strongly depends on the specific page.
Mehrdad Afshari
2009-03-21 08:39:20
A:
To keep it really simple you could just pass a dictionary with string keys and value.
tarn
2009-03-21 08:41:16
A:
I like django structure. It's very flexible. Example:
project/
apps/
app1/
models.py
views.py
forms.py
templates/ #or into root templates path
url.py #to dispatch
etc..
templates/
app1/
templates
Alexandr
2009-03-21 08:41:26