public function getList(\Base $f3, $param)
{
$this->response->data['SUBPART'] = 'webot_list.html';
$page = \Pagination::findCurrentPage();
if ($this->response instanceof \View\Backend) {
// backend view
$records = $this->resource->paginate($page - 1, 10, null, array('order' => 'id desc'));
} else {
// frontend view
$records = $this->resource->paginate($page - 1, 10, null, array('order' => 'id desc'));
}
$this->response->data['content'] = $records;
}