![]() |
where is the best place to define server depending constants in CI? - 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: where is the best place to define server depending constants in CI? (/showthread.php?tid=32356) |
where is the best place to define server depending constants in CI? - El Forum - 07-21-2010 [eluser]helle[/eluser] Hi @all, where is the best place to include constants, that depend on which server the version is. i mean things like google-api keys, or DB password, aso. thanks where is the best place to define server depending constants in CI? - El Forum - 07-21-2010 [eluser]mddd[/eluser] I put them in config/constants.php. Seems a logical place to me. (DB password goes in config/database.php, of course). where is the best place to define server depending constants in CI? - El Forum - 07-21-2010 [eluser]helle[/eluser] :-) hmm .. okay so then i will have to exclude them from svn, but thats the way it is? where is the best place to define server depending constants in CI? - El Forum - 07-21-2010 [eluser]mddd[/eluser] No different from database.php or config.php, I guess. |