public function doEdit() { $id = intval($_GET['id']); if (empty($id)) { return json('error'); } $data = $_POST; if (empty($data)) { return json('error'); } $article_biz = new ArticleBiz(); $result = $article_biz->editArticle($id, $data); $page = $result ? 'index' : '/error'; return redirect($page); }
public function test() { $test = new ArticleBiz(); $test->hehe(); }