public function editOneArticle($id = 0, $data = array()) { if (empty($id)) { return false; } if (empty($data)) { return false; } $article_model = new ArticleModel(); $result = $article_model->where('id', $id)->update($data); if (!$result) { return false; } $content_id = $article_model->select('content_id')->where('id', $id)->one(); return $content_id['content_id']; }