SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

What is the Smarty template engine?
The Smarty template engine is the underlying technology, enabling XOOPS developers to create layouts for pages, which resemble standard HTML. This makes it easy for a non-PHP designer to create visually advanced layouts without having to learn PHP Smarty Tags The XOOPS tag for using Smarty code is to enclose statements in <{ and }> The most used Smarty code is
<{$variable_name}>
for inserting variables "assigned" to Smarty in the PHP files and
<{foreach item=item_name_in_loop from=$array_containing_data}>
    <{
$item_name_in_loop.name_of_index}>
<{/foreach}>
for looping through array values. Variable Assignment Variables are assigned in PHP files like this:
$xoopsTpl->assign('variable_name'$variable_value);
for assigning a value to a variable (corresponds to the PHP statement $variable_name = $variable_value) or
$xoopsTpl->append('array_name'$variable_value);
for adding a value to an array (corresponds to the PHP statement $array_name[] = $variable_value) Much more information about Smarty is available on smarty.php.net


The comments are owned by the author. We aren't responsible for their content.


Login

Who's Online

172 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Did you know ?

some modules are constantly being developed and updated while others need a new manager.

Random question

How do I stop my IP showing in the browser address bar?