Update:Archive/2.0/Developers Guide: Difference between revisions

Line 111: Line 111:
* The global Smarty wrapper is defined at runtime, and stored in $wrapper.  If $wrapper is not defined, the default wrapper is called, which exists at 'tpl/inc/wrappers/default.tpl'.   
* The global Smarty wrapper is defined at runtime, and stored in $wrapper.  If $wrapper is not defined, the default wrapper is called, which exists at 'tpl/inc/wrappers/default.tpl'.   
* Examine index.php and faq.php for examples that will show you the difference between default and non-default wrappers.
* Examine index.php and faq.php for examples that will show you the difference between default and non-default wrappers.
* Your tpl document will live in /tpl (from the app root).  for instance, faq.tpl lives in /tpl/faq.tpl.
faq.tpl looks like this:
<code>
<h1>Frequently Asked Questions</h1>
<dl>
{section name=faq loop=$faq}
<dt>{$faq[faq].title}</dt>
<dd>{$faq[faq].text|nl2br}</dd>
{/section}
</dl>
</code>


=== Input Filtering ===
=== Input Filtering ===
3,035

edits