From 9319e7d0c235498022edd0476634d5907006bfe5 Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 20 Feb 2002 22:55:57 +0000 Subject: [PATCH] misc updates --- docs.sgml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/docs.sgml b/docs.sgml index 054667e9..dcbc3710 100644 --- a/docs.sgml +++ b/docs.sgml @@ -388,6 +388,12 @@ require_once(SMARTY_DIR."Smarty.class.php"); from that global array. $SCRIPT_NAME is globally assigned by default from $HTTP_SERVER_VARS. + + TECHNICAL NOTE: Server variables can be accessed through the + $smarty variable, such as {$smarty.env.SCRIPT_NAME}. See the + section on the $smarty variable. + $undefined @@ -743,19 +749,6 @@ $smarty->assign(array("city" => "Lincoln","state" => "Nebraska")); used by the debugging console, and should probably never be used directly. - -assign_debug_info - - -// passing name/value pairs -$smarty->assign("Name","Fred"); -$smarty->assign("Address",$address); - -// passing an associative array -$smarty->assign(array("city" => "Lincoln","state" => "Nebraska")); - - - append @@ -1343,7 +1336,7 @@ var_dump($tpl_vars); include("Smarty.class.php"); $smarty = new Smarty; - +$smarty->caching = true; // only do db calls if cache doesn't exist if(!$smarty->is_cached("index.tpl")) @@ -1423,6 +1416,7 @@ $smarty->display("db:header.tpl"); include("Smarty.class.php"); $smarty = new Smarty; +$smarty->caching = true; // only do db calls if cache doesn't exist if(!$smarty->is_cached("index.tpl")) @@ -2063,7 +2057,7 @@ email: zaphod@slartibartfast.com<br> properties that are internal variables. - + {$smarty} reserved variable The reserved {$smarty} variable can be used to access several