Joomla下利用configuration.php存储简单数据
写入过程 实现代码如下: // Get the path of the configuration file $fname = JPATH_CONFIGURATION.DS.'configuration.php'; // clear cache $cache = JFactory::getCache
写入过程 实现代码如下: // Get the path of the configuration file $fname = JPATH_CONFIGURATION.DS.'configuration.php'; // clear cache $cache = JFactory::getCache
实现代码如下:function getSubComments($parent = 0, $level = 0) { $db = $sql = "..."; // 查询记录的SQL $db->setQuery($sql); $rows = $db->loadObjectList(); $