Codeigniter Run multiple application

codeigniter, php

Solution

I found a better explained 3 approaches to get it done. I preferred the 2nd one

http://philsturgeon.co.uk/blog/2009/07/Create-an-Admin-panel-with-CodeIgniter

Problem

I m not having luck working with two applications (admin and client) with same installation of the codeigniter. I referred to many tutorials and did - I created subfolder "admin" inside application folder and cut and pasted all subdirectories into it. I copied and pasted admin folder inside application folder and renamed it "client" and in main index.php I set application folder path to "application/admin". But this works only for admin section, and to run client I have to change application folder path again in index.php. This way I cannot run both admin and client simultaneously. Please help me out. Thanks

Original source