Added helper php with renderRating method.

Changed  datail html to php and started with filling this view with database data.