mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
prepend insert_ to insert tag functions
This commit is contained in:
@@ -208,4 +208,12 @@ function smarty_func_html_select_date()
|
||||
print $html_result;
|
||||
}
|
||||
|
||||
/*============================================*\
|
||||
Insert tag functions
|
||||
\*============================================*/
|
||||
|
||||
function insert_paginate()
|
||||
{
|
||||
echo "test paginate\n";
|
||||
}
|
||||
?>
|
||||
|
@@ -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).")); ?>";
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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";
|
||||
|
||||
}
|
||||
?>
|
||||
|
@@ -21,6 +21,4 @@ My interests are:
|
||||
|
||||
({$FirstName|@count})
|
||||
|
||||
{insert name=test_insert}
|
||||
{insert name=test_insert}
|
||||
{insert name=test_insert}
|
||||
{insert name=paginate}
|
||||
|
@@ -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";
|
||||
|
||||
}
|
||||
?>
|
||||
|
@@ -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).")); ?>";
|
||||
}
|
||||
|
||||
|
||||
|
@@ -21,6 +21,4 @@ My interests are:
|
||||
|
||||
({$FirstName|@count})
|
||||
|
||||
{insert name=test_insert}
|
||||
{insert name=test_insert}
|
||||
{insert name=test_insert}
|
||||
{insert name=paginate}
|
||||
|
Reference in New Issue
Block a user