public function listModel($buttons = true)
{
if (!$this->model) {
throw new CHttpException(500, 'Nothing to list');
}
$order = $this->request->getParam('d');
if ($order == 0) {
$this->displayOrder = 1;
}
$this->assetManager->registerScriptFile('js/oeadmin/list.js');
$this->audit('list');
$this->pagination = $this->getSearch()->initPagination();
$this->render($this->listTemplate, array('admin' => $this, 'displayOrder' => $this->displayOrder, 'buttons' => $buttons));
}