ezini( section, variable [, ini file] )
Name | Type | Description | Required |
---|---|---|---|
section | string | Section to read value from. | Yes. |
variable | string | The name of the directive that should be accessed. | Yes. |
ini file | string | The target configuration file (default is "site.ini"). | No. |
This operator makes it possible to access the settings in the configuration ("*.ini") files.
{if eq(ezini( 'SomeSettings', 'Test', 'example.ini' ), 'hello' )} [...display something...] {else} [...display something else...] {/if}
Conditional branching based on an configuration setting.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.