ezini

Summary

Gives access to variables inside the config. files.

Usage

ezini( section, variable [, ini file] )

Parameters

NameTypeDescriptionRequired
section string Ini section to read value from yes
variable string Ini variable in section to read yes
ini file string Ini file to access, site.ini default no

Returns

Value read from ini file.

Description

The ezini() operator enables access to the variables in the *.ini files. It takes three arguments:

  • a section in the ini file
  • the variable itself
  • optional: the .ini file, if other than site.ini

Examples

{section show=eq(ezini( 'RegionalSettings', 'Locale' ), "eng-GB" )}

 <... display eng-GB link>

{section-else}

 <... display por-PL link>

{/section}

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
       currentdate
       ezini
       ezhttp
       ezpreference
       ezsys
       fetch
       module_params
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
11:32:41 am
by Balazs Halasy

Last updated

06/02/2004
10:33:59 am
by Kåre Køhler Høvik

Authors

Balazs Halasy
Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.