Ini files, using them in my extension?

Author Message

Clemens T

Tuesday 08 November 2005 3:40:44 am

Heya all,
I'd like to know how to use ini files throughout my extension.. in the templates as well as in the code. Right now we have an extension that is heavily depending on the id's in the contenttree.

I'd like to set these id's in an ini file, but really unsure on how to handle this, and what the best way is.

Thanks,
Clemens

Ɓukasz Serwatka

Tuesday 08 November 2005 3:54:47 am

Hi Clemens,

You can just place INI file in extension/your_extension/settings/ directory, and read it via ezini( section, variable [, ini file] ) in your tpl or eZINI::instance('your_ini_file.ini'); in PHP.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Clemens T

Tuesday 08 November 2005 8:17:40 am

wow. ez :)
thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.