diff --git a/docs/en/designers/language-builtin-functions/language-function-capture.xml b/docs/en/designers/language-builtin-functions/language-function-capture.xml
index c4a9a970..6df02591 100644
--- a/docs/en/designers/language-builtin-functions/language-function-capture.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-capture.xml
@@ -1,7 +1,7 @@
- capture
+ {capture}
@@ -37,13 +37,13 @@
- capture is used to collect the output of the template into a
+ {capture} is used to collect the output of the template into a
variable instead of displaying it. Any content between {capture
name="foo"} and {/capture} is collected into the variable specified
in the name attribute. The captured content can be used in the
template from the special variable $smarty.capture.foo
- where foo is the value passed in the name attribute. If you do not
+ where "foo" is the value passed in the name attribute. If you do not
supply a name attribute, then "default" will be used. All {capture}
commands must be paired with {/capture}. You can nest capture commands.
@@ -58,11 +58,12 @@
Be careful when capturing insert
+ linkend="language.function.insert">{insert}
output. If you have
caching
turned on and you have
- insert commands that you expect to run
+ {insert}
+ commands that you expect to run
within cached content, do not capture this content.
@@ -75,12 +76,15 @@
{capture name=banner}
{include file="get_banner.tpl"}
{/capture}
-{if $smarty.capture.banner ne ""}
+
+{if $smarty.capture.banner ne ''}
+
{$smarty.capture.banner}
+
{/if}
]]>
diff --git a/docs/en/designers/language-builtin-functions/language-function-config-load.xml b/docs/en/designers/language-builtin-functions/language-function-config-load.xml
index 8215e354..e43b877c 100644
--- a/docs/en/designers/language-builtin-functions/language-function-config-load.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-config-load.xml
@@ -1,7 +1,7 @@
- config_load
+ {config_load}
@@ -64,13 +64,14 @@
- This function is used for loading in variables from a
+ {config_load} is used for loading config
+ #variables# from a
configuration file into the template.
See Config Files for more
info.
- function config_load
+ {config_load}
- See also Config Files,
+ See also Config files,
Config variables,
+ $config_dir,
get_config_vars()
and
config_load().
diff --git a/docs/en/designers/language-builtin-functions/language-function-foreach.xml b/docs/en/designers/language-builtin-functions/language-function-foreach.xml
index 691ef0bc..1ce28b8c 100644
--- a/docs/en/designers/language-builtin-functions/language-function-foreach.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-foreach.xml
@@ -1,7 +1,7 @@
- foreach,foreachelse
+ {foreach},{foreachelse}
@@ -56,8 +56,8 @@
{foreach} loops are an alternative to
{section}
- loops. foreach is used to loop over a single
- associative array. The syntax for
+ loops. {foreach} is used to loop over a
+ single associative array. The syntax for
{foreach} is much easier than
{section}, but as a tradeoff it
can only be used
@@ -74,10 +74,17 @@
values in the from variable.
- foreach
+ {foreach} - item
+
+assign('custid', $arr);
+?>
+]]>
+
@@ -97,18 +104,25 @@
- foreach key
+ {foreach} - item and key
+
+assign("contacts", array(
+ array("phone" => "1",
+ "fax" => "2",
+ "cell" => "3"),
+ array("phone" => "555-4444",
+ "fax" => "555-3333",
+ "cell" => "760-1234"))
+ );
+?>
+]]>
+
assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"),
- array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));
-
- *}
-
{foreach name=outer item=contact from=$contacts}
{foreach key=key item=item from=$contact}
{$key}: {$item}
@@ -131,8 +145,28 @@
+
+ {foreach} - database example (eg PEAR or ADODB)
+
+assign("contacts", $db->getAssoc($sql));
+?>
+]]>
+
+
+{$con.name} - {$con.nick}
+{/foreach}
+]]>
+
+
+
+
- Foreach-loops also have their own variables that handle foreach properties.
+ {foreach} loops also have their own variables that handle {foreach} properties.
These are indicated like so:
{$smarty.foreach.foreachname.varname}
with
@@ -143,11 +177,8 @@
iteration
- iteration is used to display the current loop iteration.
-
-
- Iteration always starts with 1 and is incremented by one
- one each iteration.
+ iteration is used to display the current loop iteration.Iteration always
+ starts with 1 and is incremented by one on each iteration.
diff --git a/docs/en/designers/language-builtin-functions/language-function-if.xml b/docs/en/designers/language-builtin-functions/language-function-if.xml
index a322de2c..b46b0bb5 100644
--- a/docs/en/designers/language-builtin-functions/language-function-if.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-if.xml
@@ -1,7 +1,7 @@
- if,elseif,else
+ {if},{elseif},{else}{if} statements in Smarty have much the same flexibility as PHP if
statements, with a few added features for the template engine.
diff --git a/docs/en/designers/language-builtin-functions/language-function-include-php.xml b/docs/en/designers/language-builtin-functions/language-function-include-php.xml
index 78419a4f..2b826895 100644
--- a/docs/en/designers/language-builtin-functions/language-function-include-php.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-include-php.xml
@@ -1,7 +1,7 @@
- include_php
+ {include_php}
diff --git a/docs/en/designers/language-builtin-functions/language-function-include.xml b/docs/en/designers/language-builtin-functions/language-function-include.xml
index 0c699d57..e304b358 100644
--- a/docs/en/designers/language-builtin-functions/language-function-include.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-include.xml
@@ -1,7 +1,7 @@
- include
+ {include}
diff --git a/docs/en/designers/language-builtin-functions/language-function-insert.xml b/docs/en/designers/language-builtin-functions/language-function-insert.xml
index 5fe1eaa4..179a48f0 100644
--- a/docs/en/designers/language-builtin-functions/language-function-insert.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-insert.xml
@@ -1,7 +1,7 @@
- insert
+ {insert}
diff --git a/docs/en/designers/language-builtin-functions/language-function-ldelim.xml b/docs/en/designers/language-builtin-functions/language-function-ldelim.xml
index 387cebc7..a5326be2 100644
--- a/docs/en/designers/language-builtin-functions/language-function-ldelim.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-ldelim.xml
@@ -1,7 +1,7 @@
- ldelim,rdelim
+ {ldelim},{rdelim}
ldelim and rdelim are used for escaping template delimiters, in our case
"{" or "}". You can also use
- literal
+ {literal}
{literal} tags allow a block of data to be taken literally. This is typically
used around javascript or stylesheet blocks where curly braces would
diff --git a/docs/en/designers/language-builtin-functions/language-function-php.xml b/docs/en/designers/language-builtin-functions/language-function-php.xml
index b6112717..5f1ad664 100644
--- a/docs/en/designers/language-builtin-functions/language-function-php.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-php.xml
@@ -1,7 +1,7 @@
- php
+ {php}
{php} tags allow php to be embedded directly into the template. They
will not be escaped, regardless of the
- section,sectionelse
+ {section},{sectionelse}
@@ -75,7 +75,9 @@
- Template sections are used for looping over arrays of data. All
+ Template sections are used for looping over
+ arrays of data
+ (unlike {foreach}). All
{section} tags must be paired with
{/section} tags. Required parameters are
name and loop. The name
@@ -89,13 +91,29 @@
executed when there are no values in the loop variable.
- section
+ {section}
+
+
+assign('custid',$data);
+
+?>
+]]>
+
{/section}
+
+{* print out all the values of the $custid array reversed *}
+{section name=foo loop=$custid step=-1}
+ {$custid[foo]}
+{/section}
]]>
@@ -106,23 +124,71 @@
id: 1000
id: 1001
id: 1002
+
+id: 1002
+id: 1001
+id: 1000
]]>
+
+ Another couple of examples without an assigned array.
+
+
+
+{section name=bar loop=21 max=6 step=-2}
+ {$smarty.section.bar.index}
+{/section}
+]]>
+
+
+ The above example will output:
+
+
+
+20 18 16 14 12 10
+]]>
+
+
- section loop variable
+ {section} loop variable
+
+assign('custid',$id);
+
+$fullnames = array('John Smith','Jack Jones','Jane Munson');
+$smarty->assign('name',$fullnames);
+
+$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st');
+$smarty->assign('address',$addr);
+
+?>
+]]>
+
id: {$custid[customer]}
name: {$name[customer]}
- address: {$address[customer]}
-
+ address: {$address[customer]}
+
{/section}
]]>
@@ -131,33 +197,39 @@
id: 1000
name: John Smith
- address: 253 N 45th
+ address: 253 N 45th
+
id: 1001
name: Jack Jones
- address: 417 Mulberry ln
+ address: 417 Mulberry ln
+
id: 1002
name: Jane Munson
- address: 5605 apple st
-
+ address: 5605 apple st
+
]]>
- section names
+ {section} naming
- name: {$name[mydata]}
- address: {$address[mydata]}
+{*
+ the name of the section can be anything you like,
+ as it is used to reference the data within the section
+*}
+{section name=anything loop=$custid}
+{/section}
+
+]]>
+
- sectionelse
+ {sectionelse}
As of Smarty 1.5.0, the syntax for section property variables has
- been changed from {%sectionname.varname%} to
+ changed from {%sectionname.varname%} to
{$smarty.section.sectionname.varname}. The old syntax is still
- supported, but you will only see reference to the new syntax in the
- manual examples.
+ supported, but you will only see examples of the new syntax.
index
- index is used to display the current loop index, starting with zero
+ index is used to display the current array index, starting with zero
(or the start attribute if given), and incrementing by one (or by
the step attribute if given.)
@@ -287,13 +448,15 @@
If the step and start section properties are not
modified, then this works the same as the iteration section
- property, except it starts on 0 instead of 1.
+ property, except it starts at 0 instead of 1.
- section property index
+{section} property index
{/section}
@@ -311,40 +474,16 @@
+
+
index_prev
index_prev is used to display the previous loop index.
on the first loop, this is set to -1.
-
- section property index_prev
-
-
- {* FYI, $custid[customer.index] and $custid[customer] are identical in meaning *}
- {if $custid[customer.index_prev] ne $custid[customer.index]}
- The customer id changed
- {/if}
- {/section}
-]]>
-
-
- The above example will output:
-
-
-
- The customer id changed
- 1 id: 1001
- The customer id changed
- 2 id: 1002
- The customer id changed
-]]>
-
-
+
index_next
@@ -352,34 +491,56 @@
loop, this is still one more than the current index (respecting the
setting of the step attribute, if given.)
+
- section property index_next
+{section} property index_next and index_prev
+
+assign('custid',$data);
+
+?>
+]]>
+
- {* FYI, $custid[customer.index] and $custid[customer] are identical in meaning *}
- {if $custid[customer.index_next] ne $custid[customer.index]}
- The customer id will change
- {/if}
+{* FYI, $custid[cus.index] and $custid[cus] are identical in meaning *}
+
+
+
+
index
id
+
index_prev
prev id
+
index_next
next id
+
+{section name=cus loop=$custid}
+
+
{$smarty.section.cus.index}
{$custid[cus]}
+
{$smarty.section.cus.index_prev}
{$custid[cus.index_prev]}
+
{$smarty.section.cus.index_next}
{$custid[cus.index_next]}
+
{/section}
+
]]>
- The above example will output:
+ The above example will output a table containing the following:
- The customer id will change
- 1 id: 1001
- The customer id will change
- 2 id: 1002
- The customer id will change
+index id index_prev previd index_next nextid
+0 1001 -1 1 1002
+1 1002 0 1001 2 1003
+2 1003 1 1002 3 1004
+3 1004 2 1003 4 1005
+4 1005 3 1004 5
]]>
+
+
iteration
@@ -395,16 +556,24 @@
- section property iteration
+{section} property iteration
+
+assign('custid',$id);
+
+?>
+]]>
+
- {$smarty.section.customer.index} id: {$custid[customer]}
- {* FYI, $custid[customer.index] and $custid[customer] are identical in meaning *}
- {if $custid[customer.index_next] ne $custid[customer.index]}
- The customer id will change
- {/if}
+{section name=cu loop=$custid start=5 step=2}
+ iteration={$smarty.section.cu.iteration}
+ index={$smarty.section.cu.index}
+ id={$custid[cu]}
{/section}
]]>
@@ -413,95 +582,91 @@
- The customer id will change
- current loop iteration: 2
- 7 id: 1001
- The customer id will change
- current loop iteration: 3
- 9 id: 1002
- The customer id will change
+iteration=1 index=5 id=3005
+iteration=2 index=7 id=3007
+iteration=3 index=9 id=3009
+iteration=4 index=11 id=3011
+iteration=5 index=13 id=3013
+iteration=6 index=15 id=3015
]]>
-
+
+ This example uses the iteration property to
+ output a table header block every five rows
+ (uses {if}
+ with the mod operator).
+
+
+
+{section name=co loop=$contacts}
+ {if $smarty.section.co.iteration % 5 == 1}
+
+ {/section}
+
+]]>
+
+
+
+
first
- first is set to true if the current section iteration is the first
+ first is set to true if the current section iteration is the first
one.
-
- section property first
-
-
- {/if}
-
-
-
- {if $smarty.section.customer.last}
-
- {/if}
- {/section}
-]]>
-
-
- The above example will output:
-
-
-
-
0 id: 1000
-
1 id: 1001
-
2 id: 1002
-
-]]>
-
-
+
+
last
- last is set to true if the current section iteration is the last
+ last is set to true if the current section iteration is the last
one.
- section property last
+ {section} property first and last
+
+ This example loops the $customers array;
+ outputs a header block on the first iteration and
+ on the last outputs the footer block
+ (uses section total property)
+
+
{/if}
{/section}
]]>
-
- The above example will output:
-
-
-
-
0 id: 1000
-
1 id: 1001
-
2 id: 1002
-
-]]>
-
+
+
rownum
@@ -510,26 +675,6 @@
linkend="section.property.iteration">iteration, they work
identically.
-
- section property rownum
-
-
- {/section}
-]]>
-
-
- The above example will output:
-
-
-
- 2 id: 1001
- 3 id: 1002
-]]>
-
- loop
@@ -538,7 +683,7 @@
looped. This can be used inside or after the section.
- section property index
+ {section} property indexshow is used as a parameter to section.
show is a boolean value, true or false. If
- false, the section will not be displayed. If there is a sectionelse
+ false, the section will not be displayed. If there is a {sectionelse}
present, that will be alternately displayed.
- section attribute show
+ {section} attribute show
{/section}
@@ -608,7 +755,7 @@
will loop. This can be used inside or after the section.
- section property total
+ {section} property total
- 2 id: 1001
- 4 id: 1002
+2 id: 1002
+4 id: 1004
There were 3 customers shown above.
]]>
diff --git a/docs/en/designers/language-builtin-functions/language-function-strip.xml b/docs/en/designers/language-builtin-functions/language-function-strip.xml
index 26277d47..037024d1 100644
--- a/docs/en/designers/language-builtin-functions/language-function-strip.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-strip.xml
@@ -1,7 +1,7 @@
- strip
+ {strip}
Many times web designers run into the issue where white space and
carriage returns affect the output of the rendered HTML (browser
@@ -20,8 +20,8 @@
Technical Note
{strip}{/strip} does not affect the contents of template variables.
- See the strip modifier
- function.
+ See the
+ strip modifier.
@@ -47,7 +47,7 @@
"
+snapx=10 snapy=10}>mypage
]]>
+
+ See also
+ {popup_init}
+ and
+ overLib.
+
+
diff --git a/docs/en/designers/language-custom-functions/language-function-textformat.xml b/docs/en/designers/language-custom-functions/language-function-textformat.xml
index f8e755c0..5a2b04c3 100644
--- a/docs/en/designers/language-custom-functions/language-function-textformat.xml
+++ b/docs/en/designers/language-custom-functions/language-function-textformat.xml
@@ -1,7 +1,7 @@
- textformat
+ {textformat}
@@ -82,7 +82,9 @@
- textformat is a block function used to format text. It basically
+ {textformat} is a
+ block function
+ used to format text. It basically
cleans up spaces and special characters, and formats paragraphs by
wrapping at a boundary and indenting lines.
@@ -91,7 +93,7 @@
Currently "email" is the only available style.
- textformat
+ {textformat}
+
+ See also
+ {strip}
+ and
+ {wordwrap}.
+
+
+
diff --git a/docs/en/designers/language-modifiers/language-modifier-cat.xml b/docs/en/designers/language-modifiers/language-modifier-cat.xml
index bc61dd0f..4abbccc7 100644
--- a/docs/en/designers/language-modifiers/language-modifier-cat.xml
+++ b/docs/en/designers/language-modifiers/language-modifier-cat.xml
@@ -37,14 +37,14 @@
assign('articleTitle', "Psychics predict world didn't end");
-$smarty->display('index.tpl');
+
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'Cold Wave Linked to Temperatures.');
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
- See also count_paragraphs,
+ See also
+ count_words,
count_sentences and
- count_words.
+ count_paragraphs.
diff --git a/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml
index 8d5c7d35..e956ae90 100644
--- a/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml
+++ b/docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml
@@ -10,15 +10,17 @@
assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins
-Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation.");
-$smarty->display('index.tpl');
+
+$smarty->assign('articleTitle',
+ "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n
+ Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."
+ );
+
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.');
-$smarty->display('index.tpl');
+$smarty->assign('articleTitle',
+ 'Two Soviet Ships Collide - One Dies.
+ Enraged Cow Injures Farmer with Axe.'
+ );
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.');
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('yesterday', strtotime('-1 day'));
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
- %p - either `am' or `pm' according to the given time value, or the corresponding strings for the current locale
+ %p - either `am' or `pm' according to the given time value, or the corresponding strings for the
+ current locale
%r - time in a.m. and p.m. notation
@@ -172,17 +171,20 @@ Monday, February 5, 2001
%u - weekday as a decimal number [1,7], with 1 representing Monday
- %U - week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week
+ %U - week number of the current year as a decimal number, starting with the first Sunday as the first
+ day of the first week
- %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current
+ %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week
+ 1 is the first week that has at least 4 days in the current
year, and with Monday as the first day of the week.
%w - day of the week as a decimal, Sunday being 0
- %W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week
+ %W - week number of the current year as a decimal number, starting with the first Monday as the first
+ day of the first week
%x - preferred date representation for the current locale without the time
@@ -242,3 +244,4 @@ vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
+
diff --git a/docs/en/designers/language-modifiers/language-modifier-default.xml b/docs/en/designers/language-modifiers/language-modifier-default.xml
index b723b673..ced3513e 100644
--- a/docs/en/designers/language-modifiers/language-modifier-default.xml
+++ b/docs/en/designers/language-modifiers/language-modifier-default.xml
@@ -41,15 +41,13 @@
assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.');
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', "'Stiff Opposition Expected to Casketless Funeral Plan'");
-$smarty->display('index.tpl');
+$smarty->assign('articleTitle',
+ "'Stiff Opposition Expected to Casketless Funeral Plan'"
+ );
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'NJ judge to rule on nude beach.
+$smarty->assign('articleTitle',
+ 'NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
-Statistics show that teen pregnancy drops off significantly after 25.');
-$smarty->display('index.tpl');
+Statistics show that teen pregnancy drops off significantly after 25.'
+ );
+
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', "Sun or rain expected\ntoday, dark tonight");
-$smarty->display('index.tpl');
+$smarty->assign('articleTitle',
+ "Sun or rain expected\ntoday, dark tonight"
+ );
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say.");
-$smarty->display('index.tpl');
?>
]]>
diff --git a/docs/en/designers/language-modifiers/language-modifier-replace.xml b/docs/en/designers/language-modifiers/language-modifier-replace.xml
index d578c828..6d40dbd3 100644
--- a/docs/en/designers/language-modifiers/language-modifier-replace.xml
+++ b/docs/en/designers/language-modifiers/language-modifier-replace.xml
@@ -46,15 +46,13 @@
assign('articleTitle', "Child's Stool Great for Use in Garden.");
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.');
-$smarty->display('index.tpl');
+
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('number', 23.5787446);
-$smarty->display('index.tpl');
?>
]]>
- Where index.tpl is:
+ Where template is:
assign('articleTitle', "Blind Woman Gets New
-Kidney from Dad she Hasn't Seen in years.");
-$smarty->display('index.tpl');
+$smarty->assign('articleTitle',
+ "Blind Woman Gets New
+Kidney from Dad she Hasn't Seen in years."
+ );
?>
]]>
- where index.tpl is:
+ where template is:
Note
If you want to strip blocks of template text, use the strip function.
+ linkend="language.function.strip">{strip} function.
@@ -27,7 +27,7 @@ $smarty->display('index.tpl');
]]>
- where index.tpl is:
+ where template is:
assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.');
-$smarty->display('index.tpl');
?>
]]>
- where index.tpl is:
+ where template is:
assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
-$smarty->display('index.tpl');
?>
]]>
- where index.tpl is:
+ where template is:
- This wraps a string to a column width, default is 80. As
+ wordwrap wraps a string to a column width, default is 80. As
an optional second parameter, you can specify a string of text
to wrap the text to the next line (default is carriage return \n).
- By default, wordwrap will attempt to wrap at a word boundary. If
+ By default, {wordwrap} will attempt to wrap at a word boundary. If
you want to cut off at the exact character length, pass the optional
third parameter of true. This is equivalent to the PHP wordwrap() function.
@@ -60,15 +60,15 @@
assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years.");
-$smarty->display('index.tpl');
+$smarty->assign('articleTitle',
+ "Blind woman gets new kidney from dad she hasn't seen in years."
+ );
?>
]]>
- where index.tpl is:
+where template is
- See also nl2br.
+ See also nl2br
+ and
+ {textformat}.
@@ -134,3 +136,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
+
diff --git a/docs/entities/global.ent b/docs/entities/global.ent
index bb16918e..c60cffa7 100644
--- a/docs/entities/global.ent
+++ b/docs/entities/global.ent
@@ -9,6 +9,7 @@
+