Inside _comments partial view, htmlentities was added to prevent cross site scripting.
Inside _search partial view renamed the post id with id_tbl_post.
Inside the post/_view renamed the post id with id_tbl_post.
Inside CommentController modified the signature of the loadModel method. Now this method has a $id parameter, which is the id of the Comment to be loaded. Also, updated the Approve action, because this uses the loadModel.
Inside the Post model, the author_id was repaced with id in the relations method. Inside the attributeLabels the id is replaced with id_tbl_post. Also, some comments are added to the addComment method.
PostController has the View action modified. This has a $id parmeter, which is the Post id. Also, the loadModel was changed to take advantage of this new parameter. For the getComments and addComments functions - this still needs some refactoring to do.
Inside the post/view view, id was repaced with id_tbl_post.
Inside views/comment was added a link to the approve action method. This still need to be developed.