• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Database Connection

#1
hai  to all,
   if possible to connect multiple database in codeigniter in hooks if this possible to do?
Reply

#2
I have never had the need to use it but yes, you can:
Docs https://www.codeigniter.com/user_guide/d...-databases

I am pretty sure that this should apply to hooks to, but not if the hook point is before the db connection is made, for instance, 'pre-system' hook.
https://www.codeigniter.com/user_guide/g...ework-core

Not 100% on this, but thought that might help.

Paul.
Reply

#3
I m using three DBs on my company projects. it is easy as 1,2,3. Configure it from database.php
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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