CodeIgniter Forums

Full Version: Personal configuration file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]ariok[/eluser]
Hi!
Some one could tell me which's the best way to import a personal configuration file?

Example:
i need to use in some controllers a file where is set an array of e-mail,
or other similar fast info that i prefer to set directly in one file rather then put this info in my db.

There's a logic and correct way to do that?

Big Grin thank you all for your helps

El Forum

[eluser]stevepaperjam[/eluser]
http://ellislab.com/codeigniter/user-gui...onfig.html

...either load it on a per-controller basis, or autoload (from autoload.php) for application-wide access.

El Forum

[eluser]phester[/eluser]
I am curious to see if there's an easy way to import configuration settings from an xml file. I see a lot of open source applications storing settings that way.