0

I want to use a second database for the product data.
Is it possible to connect to two database and using of JFactory::getDbo(); ?

  • Just out of curiosity, why would you need two separate databases for a Joomla instance? – Lodder Jan 29 '19 at 20:44
  • @Lodder The maintenance of the product data is not really under my control. – Lovntola Jan 29 '19 at 20:55
1

Yep.

Official doc https://docs.joomla.org/Connecting_to_an_external_database

Also note this question has been asked before. E.G. I am trying to connect two database with one Joomla site

| improve this answer | |
  • Hyperlink-only answers are low value because they may break. Are you happy to vote to close with the duplicate question? – mickmackusa Jan 29 '19 at 23:02
  • You are right it came be closed by duplicated – Lovntola Jan 30 '19 at 17:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.