summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Advanced/Assets.page
diff options
context:
space:
mode:
authorxue <>2006-01-27 05:32:26 +0000
committerxue <>2006-01-27 05:32:26 +0000
commit962fb7adc2bc5f4cd9295bb769c5b58e3f6f7c30 (patch)
treeb7471bd11594a86bd1cd649344867167e29dad2a /demos/quickstart/protected/pages/Advanced/Assets.page
parentb4f691ed415c3c4157086e770e7fa36d2a414994 (diff)
make the assets, master and content pages xhtml-compatible.
Diffstat (limited to 'demos/quickstart/protected/pages/Advanced/Assets.page')
-rw-r--r--demos/quickstart/protected/pages/Advanced/Assets.page2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Advanced/Assets.page b/demos/quickstart/protected/pages/Advanced/Assets.page
index 857da3a1..6460cb0a 100644
--- a/demos/quickstart/protected/pages/Advanced/Assets.page
+++ b/demos/quickstart/protected/pages/Advanced/Assets.page
@@ -35,6 +35,7 @@ ADVISORY: Do not overuse asset publishing. The asset concept is mainly used to h
<h2>A Toggle Button Example</h2>
<p>
We now use the toggle button example to explain the usage of assets. The control uses two image files <tt>up.gif</tt> and <tt>down.gif</tt>, which are stored under the directory containing the control class file. When the button is in <tt>Up</tt> state, we would like to show the <tt>up.gif</tt> image. This can be done as follows,
+</p>
<com:TTextHighlighter CssClass="source">
class ToggleButton extends TWebControl {
...
@@ -49,6 +50,7 @@ class ToggleButton extends TWebControl {
...
}
</com:TTextHighlighter>
+<p>
In the above, the call <tt>$this->getAsset('up.gif')</tt> will publish the <tt>up.gif</tt> image file and return a URL for the published image file. The URL is then rendered as the <tt>src</tt> attribute of the HTML image tag.
</p>
<p>