Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB