Хранилища Subversion ant

Редакция

Авторство | Последнее изменение | Открыть журнал | Скачать | RSS

<?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');
    }
}

?>