- remove exception_handler property from Smarty class

- added Smarty's own exceptions SmartyException and SmartyCompilerException
This commit is contained in:
Uwe.Tews
2010-08-13 10:39:51 +00:00
parent cbc4205669
commit ad921936b0
17 changed files with 68 additions and 66 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class Smarty_Internal_Wrapper {
}
$func_name = implode('',$name_parts);
if(!method_exists($this->smarty,$func_name)) {
throw new Exception("unknown method '$name'");
throw new SmartyException("unknown method '$name'");
return false;
}
return call_user_func_array(array($this->smarty,$func_name),$args);