Exemple #1
0
 public function update($id)
 {
     $this->authority(40);
     $title = Util::fetch_post('title');
     $content = Util::fetch_post('content');
     if ($title == null || $content == null) {
         $this->error(2);
     }
     $news_table = new NewsTable();
     $news_table->update($id, $title, $content);
     Util::go(URL . 'news/manage/');
 }