重写View,SmartyEngine类