few general questions about configuration in release - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: few general questions about configuration in release (/showthread.php?tid=6337) |
few general questions about configuration in release - El Forum - 02-22-2008 [eluser]chejnik[/eluser] Hello, I would like to release an Dictionary application, that can anyone install to your server and use it there. Is there a simple way to override database confiration settings in config/database.php or is it better to use some new created config file with database configuration settings and other stuff? This function I have found creates simple config array Code: // $toconfig is simple array like this few general questions about configuration in release - El Forum - 02-22-2008 [eluser]Chris Newton[/eluser] If you want to make it easy, write an installer script that gather's the users information and writes the config/database.php file. Codeextinguisher has an installer that does something like this. few general questions about configuration in release - El Forum - 02-23-2008 [eluser]chejnik[/eluser] Hello, I will post my sollution for other users. In step 4 of installation I gathered database information and in step 5 I wrote them to config file Code: function install5() And function that writes the database config array into file (this time called mydatabase.php) Code: function makeConfigNew($toconfig) Hopefully it will help someone. Bye bye Ales |