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

[eluser]Dave Stewart[/eluser]
I think maybe the solution might be to abstract my data, and instead have the column formatting data be a property of the model, that gets generated at the same time as the query result.

This way, the controller can grab this data and pass it to a function in the view, which can then act upon it accordingly.

The controller could also make decisions about the "html options" part I was discussing as well, and that way I don't need to muddy the model with data it should not be concerned about.


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