Multiple Sites - Using the wrong controller. |
[eluser]jrlooney[/eluser]
just based on what you have posted, I could see that happening because you are calling the same controller. You could put your sites in separate folders, then in your front controller you tell which folder to look in: index.php change the line that assigns $application_folder. So something like Code: $application_folder = "public"; And put your public site into a folder called "public" Then in internal.php: Code: $application_folder = "dev"; And put your dev site in a folder called "dev". Here is a how to set up multiple applications in one instance of CI (I personally use method #2): http://codeigniter.com/wiki/Multiple_Applications/ [quote author="gp177" date="1223579268"]Hi everyone, I have two sites. Inetdev and Inetpub. Both with a codeigniter framework. When I reference index.php/mycontroller/ on my dev site it uses the controller on the dev site. When I reference internal.php/mycontroller/ on my dev site it seems to use the controller on my inetpub site. My index.php file and internal.php file are exactly the same. For the life of me I can't figure out why the index.php site would work but not the internal.php. I am running codeigniter on a Windows 2003 machine running IIS 6.0. Thanks for your help, GP[/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
|