Files
smarty/libs/sysplugins/smarty_method_registerdefaulttemplatehandler.php
Uwe.Tews 94b80e892b - renamed function names of autoloaded Smarty methods to Smarty_Method_....
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00

29 lines
588 B
PHP

<?php
/**
* Smarty method RegisterDefaultTemplateHandler
*
* Registers a default template handler
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Registers a default template handler
*
* @param object $smarty
* @param string $ |array $function class/methode name
*/
function Smarty_Method_RegisterDefaultTemplateHandler($smarty, $function)
{
if (is_callable($function)) {
$smarty->default_template_handler_func = $function;
} else {
throw new Exception('Default template handler "' . $function . '" not callable');
}
}
?>