diff --git a/docs/en/appendixes/tips.xml b/docs/en/appendixes/tips.xml
index f0c6f613..ab6b9562 100644
--- a/docs/en/appendixes/tips.xml
+++ b/docs/en/appendixes/tips.xml
@@ -21,8 +21,7 @@
@@ -54,7 +52,7 @@
{include} them.
But what if the header needs to have a different title, depending on
- what page you are coming from? You can pass the title to the header when
+ what page you are coming from? You can pass the title to the header
+ as an attribute when
it is included.
@@ -82,38 +81,45 @@
Passing the title variable to the header template
- mainpage.tpl
+ mainpage.tpl - When the main page is drawn, the title of "Main Page" is passed to the
+ header.tpl, and will subsequently be used as the title.
- archives.tpl
+ archives.tpl - When the
+ archives page is drawn, the title will be "Archives". Notice in the
+ archive example, we are using a variable from the
+ archives_page.conf
+ file instead of a hard coded variable.
- header.tpl
+ header.tpl - Notice that "BC News" is
+ printed if the $title variable is not set, using the
+ default
+ variable modifier.
-{$title|default:"BC News"}
+{$title|default:'BC News'}
]]>
@@ -129,27 +135,17 @@
]]>
-
-
- When the main page is drawn, the title of "Main Page" is passed to the
- header.tpl, and will subsequently be used as the title. When the
- archives page is drawn, the title will be "Archives". Notice in the
- archive example, we are using a variable from the
- archives_page.conf
- file instead of a hard coded variable. Also notice that "BC News" is
- printed if the $title variable is not set, using the
- default
- variable modifier.
-
+
Dates
- As a rule of thumb, always pass dates to Smarty as timestamps. This
- allows template designers to use date_format for full
- control over date formatting, and also makes it easy to compare dates if
- necessary.
+ As a rule of thumb, always pass dates to Smarty as
+ timestamps. This
+ allows template designers to use the date_format modifier
+ for full control over date formatting, and also makes it easy to
+ compare dates if necessary.
@@ -196,7 +192,7 @@ Jan 4, 2001
When using {html_select_date}
- in a template, The programmer will most
+ in a template, the programmer will most
likely want to convert the output from the form back into timestamp
format. Here is a function to help you with that.
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 5207a3e5..eadce862 100644
--- a/docs/en/designers/language-builtin-functions/language-function-capture.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-capture.xml
@@ -57,7 +57,7 @@
Be careful when capturing {insert}
output. If you have
- caching
+ $caching
enabled and you have
{insert}
commands that you expect to run
@@ -93,13 +93,13 @@
{popup}
function
- help
- ]]>
+help
+]]>
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 499a953b..f3c8bd4d 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
@@ -63,7 +63,7 @@
{include_php} tags are used to include a php script in your template.
- If security is enabled,
+ If $security is enabled,
then the php script must be located in the $trusted_dir path.
The {include_php} tag must have the attribute
@@ -97,9 +97,9 @@
query("select * from site_nav_sections order by name",SQL_ALL);
+$sql->query('select * from site_nav_sections order by name',SQL_ALL);
$this->assign('sections',$sql->record);
?>
@@ -111,7 +111,7 @@ $this->assign('sections',$sql->record);
{$curr_section.name}
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 341b2699..6898fb08 100644
--- a/docs/en/designers/language-builtin-functions/language-function-include.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-include.xml
@@ -6,7 +6,8 @@
{include} tags are used for including other templates in the current
template. Any variables available in the current template are also
available within the included template. The {include} tag must have
- the attribute "file", which contains the template resource path.
+ the attribute 'file',
+ which contains the template resource path.
You can optionally pass the 'assign' attribute,
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 bcf5da2f..6354094a 100644
--- a/docs/en/designers/language-builtin-functions/language-function-strip.xml
+++ b/docs/en/designers/language-builtin-functions/language-function-strip.xml
@@ -19,9 +19,9 @@
Technical Note
- {strip}{/strip} does not affect the contents of template variables.
- See the
- strip modifier.
+ {strip}{/strip} does not affect the contents of template variables,
+ see the
+ strip modifier instead.
diff --git a/docs/en/designers/language-modifiers/language-modifier-strip.xml b/docs/en/designers/language-modifiers/language-modifier-strip.xml
index 51456729..ecb986c2 100644
--- a/docs/en/designers/language-modifiers/language-modifier-strip.xml
+++ b/docs/en/designers/language-modifiers/language-modifier-strip.xml
@@ -33,7 +33,7 @@ $smarty->display('index.tpl');
diff --git a/docs/en/programmers/api-functions/api-is-cached.xml b/docs/en/programmers/api-functions/api-is-cached.xml
index 75ba70a2..85b39df1 100644
--- a/docs/en/programmers/api-functions/api-is-cached.xml
+++ b/docs/en/programmers/api-functions/api-is-cached.xml
@@ -16,7 +16,7 @@
This only works if $caching is set to true. See also the
+ linkend="variable.caching">$caching is set to true; see the
caching section.
diff --git a/docs/en/programmers/api-functions/api-register-resource.xml b/docs/en/programmers/api-functions/api-register-resource.xml
index 53fe4ac9..64ddb1f7 100644
--- a/docs/en/programmers/api-functions/api-register-resource.xml
+++ b/docs/en/programmers/api-functions/api-register-resource.xml
@@ -6,7 +6,7 @@
dynamically register resources
- Descrption
+ Descriptionvoidregister_resourcestringname
diff --git a/docs/en/programmers/caching/caching-multiple-caches.xml b/docs/en/programmers/caching/caching-multiple-caches.xml
index 1098ddd3..df16a4d2 100644
--- a/docs/en/programmers/caching/caching-multiple-caches.xml
+++ b/docs/en/programmers/caching/caching-multiple-caches.xml
@@ -8,11 +8,11 @@
or fetch().
Let's say that a call to display('index.tpl') may have several
different output contents depending on some condition, and you want
- separate caches for each one. You can do this by passing a cache_id as the
+ separate caches for each one. You can do this by passing a $cache_id as the
second parameter to the function call.
- passing a cache_id to display()
+ passing a $cache_id to display()