init smarty ver2
init smarty ver2