Welcome Guest, Not a member yet? Register   Sign In
where is the best place to define server depending constants in CI?
#1

[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
#2

[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).
#3

[eluser]helle[/eluser]
:-) hmm .. okay so then i will have to exclude them from svn, but thats the way it is?
#4

[eluser]mddd[/eluser]
No different from database.php or config.php, I guess.




Theme © iAndrew 2016 - Forum software by © MyBB