Files
smarty/libs/sysplugins/smarty_method_registerdefaulttemplatehandler.php
Uwe.Tews cf379474fd - change of filenames in sysplugins folder for internal spl_autoload function
- lexer/parser changed for increased compilation speed
2009-10-31 00:44:58 +00:00

29 lines
573 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 registerDefaultTemplateHandler($smarty, $function)
{
if (is_callable($function)) {
$smarty->default_template_handler_func = $function;
} else {
throw new Exception('Default template handler "' . $function . '" not callable');
}
}
?>