课程中成员的英文是Participants
如何改变默认(‘name’)排序,且为DESC?
仅需修改一处地方
user\classes\participants_table.php
//213行
// Make this table sorted by first name by default.
$this->sortable(true, 'name');
改为
$this->sortable(true, 'lastaccess', 'sortorder ASC');
本文介绍如何在课程参与者表格中修改默认排序方式,从按姓名排序更改为按最后访问时间降序排列,涉及的具体文件及代码行修改。
课程中成员的英文是Participants
如何改变默认(‘name’)排序,且为DESC?
仅需修改一处地方
user\classes\participants_table.php
//213行
// Make this table sorted by first name by default.
$this->sortable(true, 'name');
改为
$this->sortable(true, 'lastaccess', 'sortorder ASC');
4992
1万+
854

被折叠的 条评论
为什么被折叠?