Welcome Guest, Not a member yet? Register   Sign In
POST data in model
#3

[eluser]maadmac[/eluser]
[quote author="ELRafael" date="1193444283"]i don't use. I prefer to leave in controller. If one day, the input in the view changes, i'll need to change in model. To me, model just access the base and executes query. Just this[/quote]

Hi ELRafael,

Got it, thanks. I think for me this is a SESSION issue more than a POST one, I guess I'm in the habit of handling all db queries AND session data handling in the model, since session info is just another kind of data model.

But I'm not sure I understand one point: if the input in the view changes, you'll have to change the controller, also, no? So you have to adapt the model or the controller, I don't see the difference.


Messages In This Thread
POST data in model - by El Forum - 10-26-2007, 12:36 PM
POST data in model - by El Forum - 10-26-2007, 01:18 PM
POST data in model - by El Forum - 10-26-2007, 01:35 PM
POST data in model - by El Forum - 10-26-2007, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB