Welcome Guest, Not a member yet? Register   Sign In
Where to put standard functions that reference lib/mod methods
#7

Quote:Wait.. How would this help though? I appreciate your input, but how does this help?
Well, it would avoid duplicating the same code in multiple controllers and/or models.
Narf's suggestion for using static methods is a good alternative also.
But if your main goal is to make your function calls shorter (and perhaps easier to read), then a seperate helper would be the best solution (IMHO). That's the way CI itself is solving this.
Reply


Messages In This Thread
RE: Where to put standard functions that reference lib/mod methods - by Wouter60 - 08-12-2015, 03:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB