![]() |
Moving the application folder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Moving the application folder (/showthread.php?tid=34391) |
Moving the application folder - El Forum - 09-28-2010 [eluser]sahanlak[/eluser] Hello, I'm new here. I searched google and seems some info is outdated. When we move the application folder out of the core folder, what should I do initially? such as editing config file etc. Moving the application folder - El Forum - 09-28-2010 [eluser]Jelmer[/eluser] The application folder path can be set (just like the system folder path) in the front-controller: the index.php file. Moving the application folder - El Forum - 09-28-2010 [eluser]danmontgomery[/eluser] The user guide isn't out of date ![]() Moving the application folder - El Forum - 09-28-2010 [eluser]sahanlak[/eluser] Hi, Thanks for the reply ![]() Front controller has these 2 lines by default. $system_folder = "system"; $application_folder = "application"; I have moved the application folder already and I think I got nothing to change right? Moving the application folder - El Forum - 09-28-2010 [eluser]danmontgomery[/eluser] How can you not be sure? If you moved the application folder, CI will either work or it won't... If it does, then you don't need to change anything. If it doesn't work, then you do. Surely you opened the default page in your CI installation before posting here? index.php also has a comment above the $application_folder variable explaining what you need to do, and even has a link to the user guide: Code: /* What's more, the user guide has a specific example of how to specify an absolute server path to your application folder: Quote:It is possible to move your application folder to a different location on your server than your system folder. To do so open your main index.php and set a full server path in the $application_folder variable. |