Welcome Guest, Not a member yet? Register   Sign In
Do I use a model, library or helper?
#6

[eluser]noslen1[/eluser]
Views are for layouts as Models are for database.

You wouldn't write a function into your view that does not display anything, right ?
Well, I don't use model to do anything else but database manipulation, that's all, but that's my logic.
Everyone can do what he wants to, unless it is logic enough for him.

You could develop a whole website into a single view, or a controller or whatever you want.
I prefer to separate each part to what it is intended for.


Messages In This Thread
Do I use a model, library or helper? - by El Forum - 10-17-2012, 08:37 AM
Do I use a model, library or helper? - by El Forum - 10-17-2012, 02:23 PM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 01:22 AM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 01:34 AM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 01:41 AM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 02:05 AM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 02:11 AM
Do I use a model, library or helper? - by El Forum - 10-18-2012, 02:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB