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

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

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.

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


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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