Welcome Guest, Not a member yet? Register   Sign In
Multiple Sites - Using the wrong controller.
#4

[eluser]jrlooney[/eluser]
Question: Why do you have an index.php and an internal.php in both directories?

The way you have it is fine, if you want to maintain more than one instance of CI. Here's what mine looks like (where app1, app2, etc. are the different applications I have running on CI)

Code:
/ci/
    system/  <-- this is where CI core lives
    app1/
    app2/
    app1.php
    app2.php

Then in those .php files I mod that one line:

Code:
app1.php line 49 is:

$application_folder = "app1";


Code:
app2.php line 49 is:

$application_folder = "app2";


Then each of my "app" folders have all the stuff you typically find in the "/system/application/" folder, like so:

Code:
/ci/app1/
         config/
         controllers/
         errors/
         helpers/
         hooks/
         includes/
         index.html
         language/
         libraries/
         models/
         views/





[quote author="gp177" date="1223585168"]Thanks for the response (especially that link).

Currently my directory structure looks like this.

/inetpub/
/system/
/wwwroot/
index.php
internal.php
/inetdev/
/system/
/wwwroot/
index.php
internal.php

However if this doesn't work I will have to rethink our layout and maybe move to one of the suggested layouts.[/quote]


Messages In This Thread
Multiple Sites - Using the wrong controller. - by El Forum - 10-09-2008, 08:07 AM
Multiple Sites - Using the wrong controller. - by El Forum - 10-09-2008, 08:39 AM
Multiple Sites - Using the wrong controller. - by El Forum - 10-09-2008, 09:46 AM
Multiple Sites - Using the wrong controller. - by El Forum - 10-09-2008, 02:12 PM
Multiple Sites - Using the wrong controller. - by El Forum - 10-10-2008, 07:15 AM
Multiple Sites - Using the wrong controller. - by El Forum - 10-14-2008, 07:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB