PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

$config_overwrite

if set to true (by default), variables read in from config files will overwrite each other. otherwise, the variables will be pushed onto an array. this is helpful if you want to store arrays of data in config files, just list each element multiple times.

example 12-3. array of config variables

this examples uses {cycle} to output a table with alternating red/green/blue row colors with $config_overwrite = false.

the config file.

# row colors rowcolors = #ff0000 rowcolors = #00ff00 rowcolors = #0000ff

the template with a {section} loop.

<table>   {section name=r loop=$rows}   <tr bgcolor="{cycle values=#rowcolors#}">     <td> ....etc.... </td>   </tr>   {/section} </table>

see also {config_load}, config files, get_config_vars(), clear_config() and config_load().