SmartFAQ is developed by The SmartFactory (, a division of InBox Solutions (

What is the Smarty template engine?
  Requested by Carnuke and Answered by Mithrandir on 2004/10/28 20:48:44     9633  reads 
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
for inserting variables "assigned" to Smarty in the PHP files and
<{foreach item=item_name_in_loop from=$array_containing_data}>
for looping through array values. Variable Assignment Variables are assigned in PHP files like this:
for assigning a value to a variable (corresponds to the PHP statement $variable_name = $variable_value) or
for adding a value to an array (corresponds to the PHP statement $array_name[] = $variable_value) Much more information about Smarty is available on

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


Who's Online

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

Members: 0

Guests: 65



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

Did you know ?

You can only position a block beneath a module by hacking the theme.html file

Random question

How can I add a photo to my user profile page?