- Note: This is your first module. Open the module plus the template file to see how everything works!
- To 'catch' a smarty variable just use <{$example}>, this will result in
This is var1 For the language you must put them into smarty var by doing to same but please add lang to the name to avoid conflicts and to keep it all clear.
- DO NOT use any echo in your php files, this will result in getting all that text above the xoops text, and that isn't exactly what you want huh?
- To have more templates, define them in xoops_version.php and update module.
- You can include other templates files (wich is really needed in complex modules), do it with <{include file="db:sample_secondfile"}>, wich would result in this case: "Content of second template file"
- You can use too if's in template files, here a example plus the result:
CODE:
<{if $sample}>
$sample is defined
<{else}>
$sample is not defined
<{/if}>
|
RESULT:
$sample is not defined
|
- For any other information about xoops and/or smarty, please use Wiki.
- You are dutch, you need help or, you wanne help on xoops? Goto jan304.org or xoops.opencms.nl
|