php - 将美国置于 phpfox 注册页面上国家列表的顶部

标签 php mysql xml phpfox

我很难把美国放在首位。我在countries.xml.php中更改了它:

   <countries>
<country iso="US" name="United States" />
    <country iso="AF" name="Afghanistan" />
    <country iso="AL" name="Albania" />
    <country iso="DZ" name="Algeria" />
</countries>

在 module/core/include/service/country/country.class.php 中 我删除了所有 sql 排序,如下所示:

            ->group('c.country_iso')
            ->order('')
            ->execute(($sIso == null ? 'getRows' : 'getRow'));

我清除了缓存并刷新了 ctrl+f5,阿富汗仍然位于顶部。 请问有什么建议吗?

最佳答案

如果您通过代码文件执行此操作,您可以将国家/地区的值设置为美国。 但在 phpfox 中,您可以通过国家/地区表存在的数据库来更改它。我过去使用过 phpfox,花了很多时间,但无论如何你的解决方案都在这里。

关于php - 将美国置于 phpfox 注册页面上国家列表的顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14494571/

相关文章:

大于 10mm 记录的数据库的 MySQL 结构

html - 我应该在 html 文件中的什么地方添加 css?

php - 使用桥连接表

javascript - 使用字符串和结果二维数组构建 PHP 数组

php - Codeigniter 数据库查询子句不起作用

php - Codeigniter 中的冲突 mysql 查询

php - 我如何为 mysql 数据库中的每一行创建一个唯一的 php 页面

php - 无论如何要对 ID 进行排序?

php - 使用 php 使用 getElementsByTagName 检索 rss 图像

xml - LibXML : "xmlns" attribute being reported but not in XML input file