• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
odd config problem

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

#2
[eluser]n0xie[/eluser]
You can load your own config file if you want to : take look at the userguide

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.