Welcome Guest, Not a member yet? Register   Sign In
error handling in model
#3

[eluser]Mackstar[/eluser]
I wouldn't agree that the model is only for returning data. It is for processing data, hence if you use the model to trigger your errors like in Java's try catch throw exception thinking then models are a good place for this, however php is a little more limited than Java in this regard unless you design it that way. If you have data related errors written to logs then the model is also good. But to be truly mvc the actual showing of your errror needs to be handled by controller/view.


Messages In This Thread
error handling in model - by El Forum - 03-31-2009, 03:15 PM
error handling in model - by El Forum - 03-31-2009, 04:12 PM
error handling in model - by El Forum - 03-31-2009, 06:37 PM
error handling in model - by El Forum - 04-03-2009, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB