public function add() { $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->insert($title, $content); Util::go(URL . 'news/manage/'); }