result->error('分类不存在'); } $page = (int) input('page', 1); $list = Article::listArticles(['cid' => $id], $page, 10); $this->view->assign([ 'category' => $category, 'list' => $list->items(), 'page' => $list->render(), 'nav_active' => $id, ]); return $this->fetch('category/index'); } }