request->param(); $where['lang'] = $this->lang; $this->success('ok', \app\admin\model\article\Article::getValidArticleList($where)); } /** * @param $id * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException */ public function detail($id) { $this->success('ok', \app\admin\model\article\Article::getValidArticle($id, $this->lang, true)); } }