Welcome Guest, Not a member yet? Register   Sign In
Using multiple databases with helper files
#10

[eluser]ryan656[/eluser]
Maybe I'm missing the point of helpers and models - why is it bad to have some helper functions that query the db? For instance, one of the functions in my login helper takes the username and password and checks the db for the user, should this function be in a model or should just the query call be in a model or what? The function also sets session information if the user is found, does this belong in the model as well?

I guess im asking..does every function that performs CRUD on a database belong in a model? And is it the whole function or just the part that performs the query?

Thanks,
Ryan


Messages In This Thread
Using multiple databases with helper files - by El Forum - 12-06-2009, 01:41 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 01:49 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:04 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:09 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:12 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:29 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:37 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:49 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 02:57 AM
Using multiple databases with helper files - by El Forum - 12-06-2009, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB