diff --git a/docs/designers.sgml b/docs/designers.sgml index 06a461e9..f86dec61 100644 --- a/docs/designers.sgml +++ b/docs/designers.sgml @@ -122,17 +122,34 @@ Variables + + Smarty has several different types of variables, all of which are + explained in more detail below. The type of the variable depends on what + symbol it is prefixed with (or enclosed within). + + + + Variable in Smarty can be either displayed directly or used as arguments + for function attributes and modifiers, inside conditional expressions, + etc. To print a variable, simply enclose it in the delimiters so that it + is the only thing contained between them. Examples: + +{$Name} + +{$Contacts[row].Phone} + +<body bgcolr="{#bgcolor#}"> + Variables assigned from PHP Variables that are assigned from PHP are referenced by preceding - them with a dollar sign ($) and enclosing the variable in delimiters - like so: $varname + them with a dollar sign $. - displaying assigned variables + assigned variables Hello {$firstname}, glad to see you could make it. <p> @@ -145,6 +162,7 @@ Hello Doug, glad to see you could make it. Your last login was on January 11th, 2001. + Associative arrays