PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Multiple Applications with Codeigniter with one installation

Posted by teejay on April 10, 2010

Upgrading is never easy, you have to check for all deprecated functions. And although, CodeIgniter makes it very easy, it's probably going to be hard once you have tons of applications to upgrade.

Here's what I do to make everything easy.

Copy your system folder and put it somewhere accessible. Copy your application folder and paste outside the systems folder. You can copy a much as you need. This will be the folder of you applications.

You should see something like this

    system
    website-1 (your application)
    ----application
    ----index.php
    website-2  (your application)
    ----application
    ----index.php
    website-3  (your application)
    ----application
    ----index.php

You will now need to edit your index.php file for each of your application to have this:

    $system_folder = "../system";
    $application_folder = "application";

Once you have this, you can access the applications via: http://localhost/website-3, http://localhost/website-2 and http://localhost/website-1.

Categories: How To

Tags: codeigniter, php

No Comments

Comments are not allowed