diff --git a/Smarty.class.php b/Smarty.class.php index a603e0e2..5ff0293c 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -58,15 +58,6 @@ class Smarty ); var $global_assign = array( 'SCRIPT_NAME' ); - - var $cache_enable = true; // turn template cache on/off - - var $cache_dir = ""; // the directory path where - // cached templates are placed. - // if empty, uses compile directory - - var $cache_exp_time = 3600; // number of seconds cache is good for - // internal vars var $_error_msg = false; // error messages diff --git a/demo/index.php b/demo/index.php index 4779dadf..28aa61e5 100644 --- a/demo/index.php +++ b/demo/index.php @@ -12,6 +12,10 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"), $smarty->display("./templates/index.tpl"); -print "\ndone\n"; +function test_insert() +{ + print "
this is a test for the insert function
\n"; + +} ?> diff --git a/demo/templates/index.tpl b/demo/templates/index.tpl index 89c4e890..bc0acc52 100644 --- a/demo/templates/index.tpl +++ b/demo/templates/index.tpl @@ -20,3 +20,7 @@ My interests are: {/section} ({$FirstName|@count}) + +{insert name=test_insert} +{insert name=test_insert} +{insert name=test_insert} diff --git a/index.php b/index.php index 4779dadf..28aa61e5 100644 --- a/index.php +++ b/index.php @@ -12,6 +12,10 @@ $smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"), $smarty->display("./templates/index.tpl"); -print "\ndone\n"; +function test_insert() +{ + print "
this is a test for the insert function
\n"; + +} ?> diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index a603e0e2..5ff0293c 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -58,15 +58,6 @@ class Smarty ); var $global_assign = array( 'SCRIPT_NAME' ); - - var $cache_enable = true; // turn template cache on/off - - var $cache_dir = ""; // the directory path where - // cached templates are placed. - // if empty, uses compile directory - - var $cache_exp_time = 3600; // number of seconds cache is good for - // internal vars var $_error_msg = false; // error messages diff --git a/templates/index.tpl b/templates/index.tpl index 89c4e890..bc0acc52 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -20,3 +20,7 @@ My interests are: {/section} ({$FirstName|@count}) + +{insert name=test_insert} +{insert name=test_insert} +{insert name=test_insert}