Welcome Guest, Not a member yet? Register   Sign In
Using my application in another application
#1

[eluser]Unknown[/eluser]
Hi Guys

I have a site which runs codeigniter

Now I will like to make a subsite with the almost the same things, but with some new views, models and controllers, but how can i make it as easy as possible , so I just create a new folder in the application folder, and only copy the needed files to the new folder, and the codeigniter will first try to look in the subfolder, and if the file is there use, or else look in the application folder.

Just like codeigniter are doing now, when you extend a library class.

I have tried to set the APPPATH to nothing, and then use include_path, to do it, but CI is using file_exists, which doesn't look in the include_path.

Right now I am using Symbolic links, from one site to another, but every time I add a new language file, etc. I have to make a symbolic link to the subsite.

Is there anyone who has an idea


Kind Regards

Tue Topholm




Theme © iAndrew 2016 - Forum software by © MyBB