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?– LodderCommented Jan 29, 2019 at 20:44
-
@Lodder The maintenance of the product data is not really under my control.– LovntolaCommented Jan 29, 2019 at 20:55
Add a comment
|
1 Answer
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
-
Hyperlink-only answers are low value because they may break. Are you happy to vote to close with the duplicate question? Commented Jan 29, 2019 at 23:02
-