Exemple #1
0
 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);
 }
Exemple #2
0
 public function test()
 {
     $test = new ArticleBiz();
     $test->hehe();
 }