Welcome Guest, Not a member yet? Register   Sign In
Applications outside the CI installation folder.
#1

[eluser]Josamoto[/eluser]
Hi all.

I want to have my CI apps running, BUT they must be sitting outside the CI installation folder. I know it's possible to host multiple applications, and the documentation clearly explains how to.

But, how do I place my apps outside the CI folder, contained in its own project folder, separate from the CI installation.

I want a structure such as this:
..\codeigniter (which contains only CI stuff, nothing else)

..\project01 (which uses and depends on CI)
..\project01\models
..\project01\views
..\project01\controllers

..\project02 (which also uses and depends on CI)
..\project02\models
..\project02\views
..\project02\controllers

I want to do this as I want to separate my application code and templates from CI, so it's easier to backup my applications, and it's also easier to update CI.

I always keep my repository code which is shared amongst projects, outside my projects individual folders, but still accessible on the same server.

Thanks for the advice in advance.
#2

[eluser]ejangi[/eluser]
My setup (on my mac) is like so:

System folder:
/Users/..../Sites/CodeIgniter_1.5.4/system/

Then applications can reside anywhere, so for instance this contains the controllers, models folders etc (which I just copied from system):
/Users/.../Sites/myapp/application/

And then in:
/Users/.../Sites/myapp/html/index.php

I have this:
Code:
$system_folder = "../../CodeIgniter_1.5.4/system";
$application_folder = "../application";




Theme © iAndrew 2016 - Forum software by © MyBB