Welcome Guest, Not a member yet? Register   Sign In
How to split the controller / model workload
#3

[eluser]Dave Stewart[/eluser]
Thanks for your input.

I agree that perhaps the view would be the best place for the JS and HTML. However, I do like the idea of having one class that keeps EVERYTHING to do with a report in one place, rather than splitting it up all over the place.

For example, for each table that gets generated from the model data, I need to send appropriate column formatting data to the HTML view, to be post-processed by JavaScript. It seems logical to me to include all this data within one class, so for example one class / model per report stores:

- SQL query
- table formatting
- Related reports / next options

More views are very welcome, thanks.

Dave


Messages In This Thread
How to split the controller / model workload - by El Forum - 06-24-2008, 03:23 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 03:38 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 03:56 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:03 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:17 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:39 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 04:56 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 05:27 AM
How to split the controller / model workload - by El Forum - 06-24-2008, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB