Welcome Guest, Not a member yet? Register   Sign In
Should I use models OR libraries?
#4

[eluser]xwero[/eluser]
If you have a bunch of functions that depend on each other to achieve a goal then you have a library. Take a look at the CI libraries.

If the functions are stand alone for the most part put them in a helper.

if it's a stand alone function you can't categorize put it in a plugin.

From the function names you provided i would create a auth_helper for the gen_password and clear_login_attempts and a email plugin for the send_email function.


Messages In This Thread
Should I use models OR libraries? - by El Forum - 03-17-2009, 07:59 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 08:15 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 08:21 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 08:42 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 09:12 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 09:22 AM
Should I use models OR libraries? - by El Forum - 03-17-2009, 09:26 AM
Should I use models OR libraries? - by El Forum - 03-19-2009, 09:31 PM
Should I use models OR libraries? - by El Forum - 03-19-2009, 10:12 PM
Should I use models OR libraries? - by El Forum - 03-19-2009, 10:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB