Location: PHPKode > projects > Php4dvd - movie database > php4dvd/smarty/plugins/function.stringappend.php
<?php

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     strcat
 * Author:   Piotr Klaban <makler at man.torun.pl>
 * Date:     Wed, Nov 12 2002
 * Purpose:  concatenates a value to a template variable
 * -------------------------------------------------------------
 */
function smarty_function_stringappend($params, &$smarty)
{
    extract($params);

    if (empty($var)) {
        $smarty->trigger_error("assign: missing 'var' parameter");
        return;
    }

    if (!in_array('value', array_keys($params))) {
        $smarty->trigger_error("assign: missing 'value' parameter");
        return;
    }

    $smarty->assign($var, $smarty->get_template_vars($var) . $value);
}

/* vim: set expandtab: */

?>
Return current item: Php4dvd - movie database