Welcome Guest, Not a member yet? Register   Sign In
Converting an existing app - what to do with my functions?
#2

[eluser]kgill[/eluser]
It all depends on what they do and how often you'll use them. First decide where they'll be used from, model or controller? If it's one of those two are the functions used in every model or controller? If that's the case it would probably make more sense to add them to your own MY_ controller or model and extend that. If they're only used in some of the controllers/models then a library or helper might be more appropriate so you can load it only when they're needed. Finally if only one model or controller needs them then put them directly in that file unless you foresee the possibility of the functions being needed by something else in the future.


Messages In This Thread
Converting an existing app - what to do with my functions? - by El Forum - 07-28-2009, 08:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB