include Jfactory class in an external php file, Joomla

后端 未结 3 1243
一个人的身影
一个人的身影 2020-12-08 03:15

I am writing a module for Joomla, at this point I really need to be able to connect to the database using Jfactory. Normally one could simply use $db = JFactory::getDB

3条回答
  •  情深已故
    2020-12-08 04:05

    For accessing Database information of Joomla ,You should include("configuration.php").This joomla configuaraion file contains all information of database access.

    class JFactory defined in this folder "joomlaRootFolder/libraries/joomla/factory.php"

提交回复
热议问题