• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.