model = model('AdminLog'); } /** * 查看 */ public function index() { return $this->view->fetch(); } /** * 详情 */ public function detail($ids) { $row = $this->model->get(['id' => $ids]); if (!$row) { $this->error(__('No Results were found')); } $this->view->assign("row", $row->toArray()); return $this->view->fetch(); } }