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