Welcome Guest, Not a member yet? Register   Sign In
Quick guestion about multiple application
#1

[eluser]vbnullchar[/eluser]
I want to run multiple application in one codeigniter installation..
the question is how to call each application and how to configure..
#2

[eluser]dedenf[/eluser]
http://ellislab.com/codeigniter/user-gui..._apps.html
#3

[eluser]vbnullchar[/eluser]
i think the guide written on that page is not enough..

i have 3 application in one codeigniter setup.

Code:
system/application/home/
system/application/app1/
system/application/app2/
system/application/app3/

i set home as the default controller
Code:
$application_folder = "application/home";

can you tell me how to call the application app1 from home
#4

[eluser]dedenf[/eluser]
you must create a file let say named app1.php and app2.php, and place that file in the same directory with the index.php (usually it in the root CI dir, next is copy all the code in the index.php to app1.php, app2.php.
and look for the $application_folder variable, in app1.php you set $application_folder like this (its depend on your dir). let say you create those 3 dir for your application (home, app1,app2)
Code:
// in index.php
$application_folder = "application/home";

// in app1.php
$application_folder = "application/app1";

//im app2.php
$application_folder = "application/app2";
next step is you move all the file on the application folder (which is cointained with config, view,etc) to the system/application/home/ so this is your "default" application.
and for the app1 is just the same with home, you fill app1 with the same content like home (just copy and paste it)
#5

[eluser]vbnullchar[/eluser]
thats what guide said.. it'll be too messy i would be creating app1.php... app10.php

is there any other way..
#6

[eluser]dedenf[/eluser]
there is other way to hide your "messy" by using mod_rewrite to rewrite the app1.php url, beside, you still need different config for your multiple Application
#7

[eluser]sergitin[/eluser]
why don't you extract the applications from your system/application folder
and then create aliases in apache configuration file with each one???
#8

[eluser]esra[/eluser]
Code:
application/
   app1
   app2
   app3
system/
resouces/
   css/
   images/
   javascript/
www
   app1/index.php
   app2/index.php
   app3/index.php

Index.php is the bootstrap loader for an individual application. Make copies for each application. The system/ path would remain constant among the three applications, but the application paths would be different for each application. Use your web site administration console to direct individual domains or subdomains to the applicable index.php path. This action should create a virtual domain in Apache for each application.
#9

[eluser]E1M2[/eluser]
You can also take a look at CodeOfficer's solution, depends on symlinks though




Theme © iAndrew 2016 - Forum software by © MyBB