odd config problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: odd config problem (/showthread.php?tid=23164) |
odd config problem - El Forum - 10-02-2009 [eluser]Unknown[/eluser] Hi all, I am new to CodeIgniter and have a few questions. Firstly I am just doing some exploration into whether i can actually use CI easily. we are currently using an in-house framework, but it is not that robust yet. we are mainly using it provide a common menu set, css, user authentication and db connection. The problem arises in our dev, testing and production environment variables. They are stored in a config file that i cannot easily modify or move. What would be ideal is if i could load the previous config variables into the CI config variables, but i am not unsure as to the proper way of doing this. Any suggestions? Thanks, Ozzie odd config problem - El Forum - 10-02-2009 [eluser]n0xie[/eluser] You can load your own config file if you want to : take look at the userguide odd config problem - El Forum - 10-02-2009 [eluser]philm[/eluser] Hi, You can easily have a seperate config file, or any other kind of file/folder for that matter, for each environment. I'm presuming your on a Linux server, just setup the necessary symlinks to the correct file on all the servers. For example locally you would use: Quote:ln -s bootstrap.development.php bootstrap.php On the staging server: Quote:ln -s bootstrap.staging.php bootstrap.php And finally on the live server: Quote:ln -s bootstrap.production.php bootstrap.php Hope this helps :-) |