Variables

Top  Previous  Next

Variables are pieces of text that are fetched directly from the Web Portal API. In a template file variables are represented in the following way:

 

$variable_name

 

Examples

 

$title

$main

$product_description

 

You may combine variables with HTML like this:

 

<title>$title</title>

 

You may use the same variable as many times as you want in a template.$main is a special variable which contains output from the PHP engine which is useful during the development process. Of course it should not be included in a production system.During the development stage it useful to view PHP error messages.

 

Here is an example of the use of a variable

 

<TABLE width="100%">

<TR>

 

{$products{

<TD valign="top">

<b>Products:</b><br>

<UL>

$products

</UL>

</TD>

}}

 

</TR>

</TABLE>

 

To learn about the specific variables please refer to the API documentation and examples.