需要新建Custom/module/[你的模块名]/views/view.list.php文件,并在该文件添加以下代码:
<?php
require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList
{
public function listViewPrepare()
{
if (empty($_REQUEST['orderBy'])) {
$_REQUEST['orderBy'] = 'ACCNO';
$_REQUEST['sortOrder'] = 'desc';
}
parent::listViewPrepare();
}
}
?>
网友评论