Welcome Guest, Not a member yet? Register   Sign In
CI with multiple sites in xampp
#1

[eluser]sasori[/eluser]
Hi, can somebody tell/explain how to set up the codeigniter in xampp, where in, all the
folders under the htdocs will benefit from it?
or do I need to have a separate codeigniter package for every application that I am working on ?
#2

[eluser]Rick Jolly[/eluser]
In each index.php bootstrap you can set the system directory to any place you like.
#3

[eluser]sasori[/eluser]
[quote author="Rick Jolly" date="1263252001"]In each index.php bootstrap you can set the system directory to any place you like.[/quote]

you mean to say, all I have to do is move the system folder away from the htdocs ?
and then, each web app can have its own CI application folder only, and then,
give each web app the index.php this line = $system_folder = "system";
is that what you mean ? OR ?
#4

[eluser]Rick Jolly[/eluser]
I mean exactly what I wrote. In CI both the system and application directory locations are configurable in index.php. Instructions are right there in the index.php comments
Code:
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same  directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
$system_folder = "system";
You could change the system folder location using an absolute or relative path. For example, if you wanted the system folder located one level above your application, and you wanted to change the name from "system" to "CI", you could do this:
Code:
$system_folder = "../CI";
#5

[eluser]sasori[/eluser]
does that process will allow me to use only "1" system folder for all the web app made up of CI ?
#6

[eluser]Dyllon[/eluser]
[quote author="sasori" date="1263287819"]does that process will allow me to use only "1" system folder for all the web app made up of CI ?[/quote]
Yep.
#7

[eluser]sasori[/eluser]
haha awesome..it worked




Theme © iAndrew 2016 - Forum software by © MyBB