CodeIgniter Forums
Moving application folder etc. out of system folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Moving application folder etc. out of system folder (/thread-7285.html)



Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]headdy[/eluser]
Newbie here. I've tested a couple of frameworks for my project, and decided on CI because it's lightweight and (more importantly) has the best documentation of the ones I've tried.

But I'm missing something... I've seen a lot of talk in these forums on moving folders out of the system directory, but I haven't seen any specific instructions for doing so.
At the moment I've just moved the application folder to the root and that appears to work.

Could someone point me in the right direction?


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]wiredesignz[/eluser]
You did it right. Nothing else to say except...

Welcome to CI forums Wink


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]xwero[/eluser]
At the moment you only can define the directory for BASEPATH (system) and APPPATH (application). If you want to change other directories you have to modify/extend the libraries because they are hardcoded.


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]headdy[/eluser]
[quote author="wiredesignz" date="1207145377"]You did it right. Nothing else to say except...

Welcome to CI forums Wink[/quote]

Thank you Smile


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]headdy[/eluser]
[quote author="xwero" date="1207145718"]At the moment you only can define the directory for BASEPATH (system) and APPPATH (application).[/quote]

For the time being, would it be worth creating another constant for pointing to the root?


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]xwero[/eluser]
Most applications i make have an added PUBPATH constant which contains the path to the public files.


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]wiredesignz[/eluser]
PUBPATH = directions to the local bar? :lol:


Moving application folder etc. out of system folder - El Forum - 04-02-2008

[eluser]xwero[/eluser]
[quote author="wiredesignz" date="1207155463"]PUBPATH = directions to the local bar? :lol:[/quote]
alcoholic Tongue


Moving application folder etc. out of system folder - El Forum - 04-03-2008

[eluser]bradym[/eluser]
[quote author="headdy" date="1207150863"]
For the time being, would it be worth creating another constant for pointing to the root?[/quote]

Not really. Since everything goes through index.php, everything has access to APPPATH and BASEPATH.

Brady