我很难把美国放在首位。我在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/