function addcommentAction() { $model = new PageModel(); $comment = post('comments'); $postid = post('postid'); $commentid = $model->postcomment($comment, $postid); }