public function publish() { $u = new Post_model($this->template, $this->router->query_string); $u->publish(); $this->template->render("publish_post_result", "json"); }