Update SmartyView.php