![]() |
Application configuration library extension - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Application configuration library extension (/showthread.php?tid=28774) |
Application configuration library extension - El Forum - 03-21-2010 [eluser]Peter Lachky[/eluser] Hi everybody, I am quite new to CI and this forum helped me a lot already, so I would like to contribute as well. While developing an application I needed to set up a convenient way to store various application config values to database. I decided to extend original config library because this is where config stuff belongs and also because it is loaded automatically. It is very simple and many of you probably made something like that. But maybe it will help someone. Improvements welcome! :-) Name this file MY_Config.php and put it in your application/libraries directory. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |