Welcome Guest, Not a member yet? Register   Sign In
How to reuse an established DB connection in an another controller ?
#8

[eluser]TheFuzzy0ne[/eluser]
It all depends. I wouldn't say there's a best practice. It all depends on where you need to database. If you don't user it in your controller, and do in your model, then the model would probably be the better option, if you do use it in your controller, load it there. It's really up to you, so do what makes sense to you.


Messages In This Thread
How to reuse an established DB connection in an another controller ? - by El Forum - 03-02-2009, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB