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

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


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

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 )

Thanks for your inputs.

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

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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