如何使用 joomla 对象构建全文搜索查询。我一直在尝试,但它不起作用
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('*');
$query->from('#__unis_subjects AS s');
$query->join('', '#__unis AS u ON s.university = u.id');
$query->join('', '#__unis_faculties AS f ON f.id = s.faculty');
$query->where('MATCH (s.subject) AGAINST ("' . $query . '")');
if (!$db->query()) {
throw new Exception($db->getErrorMsg());
}
$data = $db->loadObjectList();
var_dump($query);
结果输出模板配置参数