diff --git a/docs.sgml b/docs.sgml
index bd77a91b..f59a3a2a 100644
--- a/docs.sgml
+++ b/docs.sgml
@@ -669,6 +669,7 @@ $smarty->clear_all_cache();
void is_cached
string template
+ [string cache_id]
@@ -701,11 +702,11 @@ $smarty->display("index.tpl");
$smarty->caching = true;
-if(!$smarty->is_cached("index.tpl","CACHEID")) {
+if(!$smarty->is_cached("index.tpl","FrontPage")) {
// do database calls, assign vars here
}
-$smarty->display("index.tpl","CACHEID");
+$smarty->display("index.tpl","FrontPage");
@@ -787,6 +788,7 @@ $smarty->display("index.tpl");
string fetch
string template
+ [string cache_id]
@@ -1448,15 +1450,15 @@ OUTPUT:
id: 1000<br>
name: John Smith<br>
-address: 253 N 45th
+address: 253 N 45th<br>
<p>
id: 1001<br>
name: Jack Jones<br>
-address: 417 Mulberry ln
+address: 417 Mulberry ln<br>
<p>
id: 1002<br>
-name: Jane Munson
-address: 5605 apple st
+name: Jane Munson<br>
+address: 5605 apple st<br>
<p>
@@ -1501,24 +1503,24 @@ OUTPUT:
id: 1000<br>
name: John Smith<br>
-address: 253 N 45th
-home phone: 555-555-5555
-cell phone: 555-555-5555
-e-mail: john@mydomain.com
+address: 253 N 45th<br>
+home phone: 555-555-5555<br>
+cell phone: 555-555-5555<br>
+e-mail: john@mydomain.com<br>
<p>
id: 1001<br>
name: Jack Jones<br>
-address: 417 Mulberry ln
-home phone: 555-555-5555
-cell phone: 555-555-5555
-e-mail: jack@mydomain.com
+address: 417 Mulberry ln<br>
+home phone: 555-555-5555<br>
+cell phone: 555-555-5555<br>
+e-mail: jack@mydomain.com<br>
<p>
id: 1002<br>
-name: Jane Munson
-address: 5605 apple st
-home phone: 555-555-5555
-cell phone: 555-555-5555
-e-mail: jane@mydomain.com
+name: Jane Munson<br>
+address: 5605 apple st<br>
+home phone: 555-555-5555<br>
+cell phone: 555-555-5555<br>
+e-mail: jane@mydomain.com<br>
<p>
@@ -2024,70 +2026,6 @@ OUTPUT:
<option value="2001">2001</option>
</select>
-
-
-
-
- header
-
-
-
-
-
-
-
-
-
- Attribute Name
- Type
- Required
- Default
- Description
-
-
-
-
- contents
- string
- Yes
- n/a
- The contents of the header to pass
-
-
-
-
-
- header is a function that sends a raw header
- string. For example, if your template is sending content intended
- for a WAP (Wireless Access Protocol) device, you would need to send
- a special header to indicate the type of content you are sending.
-
-
- TECHNICAL NOTE: Be sure you call {header ...}
- before any output in your template, including
- whitespace. Otherwise the header will not work as intended.
-
-
-header
-
-
-{* our template is outputting contents for WAP devices *}
-{header contents="Content-type: text/vnd.wap.wml"}
-
-<?xml version"1.0"?>
-DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
-"http://www.wapforum.org/DTD/wml_1.1.xml"
-
-<wml>
-<card id="card1" title="Example1">
- <p>
- {$now|date_format}
- Welcome to my webpage!
- </p>
-</card>
-</wml>
-
-
@@ -2209,7 +2147,7 @@ POLICE BEGIN CAMPAIGN TO RUNDOWN JAYWALKERS
OUTPUT:
-Feb 6,2001
+Feb 6, 2001
Tuesday, February 6, 2001
14:33:00
@@ -2343,7 +2281,7 @@ for a full list of valid specifiers.
default
-{* this will display "no title" (without the qoutes) if $articleTitle is empty *}
+{* this will display "no title" (without the quotes) if $articleTitle is empty *}
{$articleTitle|default:"no title"}
OUTPUT: