finished cases for posts controller
worked on the posts view
need to finish tpl parsing 
added getCategories method in the posts model