• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to keep configuration data outside of web folder

#1
Is there any way to keep the 'config.php' file out of the 'application' or 'web root' directory in codeigniter.

Thanks,
-Krati
Reply

#2
Make a "public" directory alongside "application" and put your index.php in it. That's pretty much the industry standard.
Reply

#3
You will need to edit the index.php file and change the folder paths
for application folder path to ../application
and the system folder path to ../system
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#4
Thanks for your inputs.

I want only the config.php file outside the application folder, how do i make it work?
Reply

#5
Can't make only config.php to be outside webroot, nor is there any valid reason for that.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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