CodeIgniter Forums
About index.php ,System and Application folders in the same root - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: About index.php ,System and Application folders in the same root (/showthread.php?tid=20668)



About index.php ,System and Application folders in the same root - El Forum - 07-17-2009

[eluser]sirfak[/eluser]
Hi all,
If I have index.php, application folder and system folder in the same root then what should be the value of the
$system_folder=""; and
$application_folder=""

say I have /wwwroot.....index.php
1......system (folder)
1......application (folder)

Please write the exact value of $system_folder and $application_folder

thanks
sirfak


About index.php ,System and Application folders in the same root - El Forum - 07-17-2009

[eluser]Phil Sturgeon[/eluser]
This will blow your mind.

Code:
$application_folder = 'application';
$system_folder = 'system';

Woah! Tongue


About index.php ,System and Application folders in the same root - El Forum - 07-19-2009

[eluser]sirfak[/eluser]
Hello...
surely it has..
How is it? I mean I have moved my application folder from system folder. Is it like the value of $application_folder and $system_folder are relative to the location of the index.php file?

Because by default also we had the same value when application folder was inside system folder?
Thanks
sirfak


About index.php ,System and Application folders in the same root - El Forum - 07-20-2009

[eluser]Phil Sturgeon[/eluser]
The application folder can be in system or next to it. This is default behaviour and is explained in the User Guide.

Did you try just moving the folder and seeing what happened? You really need to try things before posting for help or you will spend all your time waiting for answers instead of writing brilliant applications!