prepend insert_ to insert tag functions

This commit is contained in:
mohrt
2001-01-02 21:52:38 +00:00
parent 6b3e0d34ad
commit 41cb6435e1
7 changed files with 12 additions and 20 deletions

View File

@@ -208,4 +208,12 @@ function smarty_func_html_select_date()
print $html_result;
}
/*============================================*\
Insert tag functions
\*============================================*/
function insert_paginate()
{
echo "test paginate\n";
}
?>

View File

@@ -494,7 +494,7 @@ class Smarty
$arg_list[] = "'$arg_name' => $arg_value";
}
return "<?php print $name(array(".implode(',', (array)$arg_list).")); ?>";
return "<?php print insert_$name(array(".implode(',', (array)$arg_list).")); ?>";
}

View File

@@ -12,10 +12,4 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
$smarty->display("./templates/index.tpl");
function test_insert()
{
print "<br>this is a test for the insert function<br>\n";
}
?>

View File

@@ -21,6 +21,4 @@ My interests are:
({$FirstName|@count})
{insert name=test_insert}
{insert name=test_insert}
{insert name=test_insert}
{insert name=paginate}

View File

@@ -12,10 +12,4 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
$smarty->display("./templates/index.tpl");
function test_insert()
{
print "<br>this is a test for the insert function<br>\n";
}
?>

View File

@@ -494,7 +494,7 @@ class Smarty
$arg_list[] = "'$arg_name' => $arg_value";
}
return "<?php print $name(array(".implode(',', (array)$arg_list).")); ?>";
return "<?php print insert_$name(array(".implode(',', (array)$arg_list).")); ?>";
}

View File

@@ -21,6 +21,4 @@ My interests are:
({$FirstName|@count})
{insert name=test_insert}
{insert name=test_insert}
{insert name=test_insert}
{insert name=paginate}