Welcome Guest, Not a member yet? Register   Sign In
Load table library in the controller ?!?
#7

[eluser]FranckRR[/eluser]
Hum

Let's say. I follow your advices : I load the table in the controller and may be add_row to it ...
In my view, I use the table previously loaded in the controller.
Fine it will work

But what if I don't want to use a table any more, I need to display it in a swf. Instead of only coding a new view (which make sense because this is what I want to be changed) I must change the controller code too because I do not use the table anymore. Of course you can let the code there even if it's not used later (if you agree with that, I will stop arguing and pass mt way elsewhere)

MVC means separating logic, data and representation and not common ways or everybody does that...

If I want to represent my model in the view as a table, only the view must be aware of that ! Thus considering table in the controller already commits me about the representation.


Messages In This Thread
Load table library in the controller ?!? - by El Forum - 11-25-2009, 08:15 AM
Load table library in the controller ?!? - by El Forum - 11-25-2009, 08:45 AM
Load table library in the controller ?!? - by El Forum - 11-25-2009, 08:53 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 04:39 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 04:57 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 05:05 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 09:09 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 09:21 AM
Load table library in the controller ?!? - by El Forum - 11-27-2009, 01:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB