public function myposts() { // get posts created by a user $u = new Post_Model($this->template, $this->router->query_string); $u->my_posts($this->router->id, null, 1); $this->set_view("my_posts"); $this->template->render(null, "html"); }