summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Configurations/Templates2.page
diff options
context:
space:
mode:
authorcarl <>2006-01-18 15:01:50 +0000
committercarl <>2006-01-18 15:01:50 +0000
commitefa8b9e7ce1c700d31fee7d16351159ac5f2e71f (patch)
treea31fd85e0dfdd43259349bf5f8143990890d0845 /demos/quickstart/protected/pages/Configurations/Templates2.page
parentf5ff6a39ae808bc53513c1353769d9f3088cc0cf (diff)
Fixed a name bug Template pages
Diffstat (limited to 'demos/quickstart/protected/pages/Configurations/Templates2.page')
-rw-r--r--demos/quickstart/protected/pages/Configurations/Templates2.page12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/quickstart/protected/pages/Configurations/Templates2.page b/demos/quickstart/protected/pages/Configurations/Templates2.page
index cace46b3..ca8d7de4 100644
--- a/demos/quickstart/protected/pages/Configurations/Templates2.page
+++ b/demos/quickstart/protected/pages/Configurations/Templates2.page
@@ -1,13 +1,13 @@
<com:TContent ID="body" >
<h1>Templates: Part II</h1>
-<a name="dct" />
+<a name="dct"></a>
<h2>Dynamic Content Tags</h2>
<p>
Dynamic content tags are introduced as shortcuts to some commonly used <a href="?page=Configurations.Templates1#ct">component tags</a>. These tags are mainly used to render contents resulted from evaluating some PHP expressions or statements. They include <a href="#et">expression tags</a>, <a href="#st">statement tags</a>, <a href="#dt">databind tags</a>, <a href="#pt">parameter tags</a>, <a href="#at">asset tags</a> and <a href="#lot">localization tags</a>.
</p>
-<a name="et" />
+<a name="et"></a>
<h3>Expression Tags</h3>
<p>
An expression tag represents a PHP expression that is evaluated when the template control is being rendered. The expression evaluation result is inserted at the place where the tag resides in the template. Its format is as follows,
@@ -20,7 +20,7 @@ Inernally, an expression tag is represented by a <tt>TExpression</tt> control. T
</com:TTextHighlighter>
</p>
-<a name="st" />
+<a name="st"></a>
<h3>Statement Tags</h3>
<p>
Statement tags are similar to expression tags, except that statement tags contain PHP statements rather than expressions. The output of the PHP statements (using for example <tt>echo</tt> or <tt>print</tt> in PHP) are displayed at the place where the statement tag resides in the template. Inernally, a statement tag is represented by a <tt>TStatements</tt> control. Therefore, in the statements <tt>$this</tt> refers to the <tt>TStatements</tt> control. The format of statement tags is as follows,
@@ -40,7 +40,7 @@ echo strftime("%A %e %B %Y",time());
</com:TTextHighlighter>
</p>
-<a name="dt" />
+<a name="dt"></a>
<h3>Databind Tags</h3>
<p>
Databind tags are similar to expression tags, except that the expressions are evaluated only when a <tt>dataBind()</tt> call is invoked on the controls representing the databind tags. Internally, a <tt>TLiteral</tt> control is used to represent a databind tag and <tt>$this</tt> in the expression would refer to the control. The format of databind tags is as follows,
@@ -49,7 +49,7 @@ Databind tags are similar to expression tags, except that the expressions are ev
</com:TTextHighlighter>
</p>
-<a name="pt" />
+<a name="pt"></a>
<h3>Parameter Tags</h3>
<p>
Parameter tags are used to insert application parameters at the place where they appear in the template. The format of parameter tags is as follows,
@@ -59,7 +59,7 @@ Parameter tags are used to insert application parameters at the place where they
Note, application parameters are usually defined in application configurations or page directory configurations. The parameters are evaluated when the template is instantiated.
</p>
-<a name="at" />
+<a name="at"></a>
<h3>Asset Tags</h3>
<p>
Asset tags are used to publish private files and display the corresponding the URLs. For example, if you have an image file that is not Web-accessible and you want to make it visible to end-users, you can use asset tags to publish this file and show the URL to end-users so that they can fetch the published image.