add view class
Merge pull request #8 from choseitan/smarty

add view class