Welcome Guest, Not a member yet? Register   Sign In
Multiple applications
#1

[eluser]Capt. Kirk[/eluser]
Hello there!

How can I keep multiple applications using CI? I mean, the manual says that I must have the same structure of folders as controler, view, etc, but do I have to copy all the folders as library, helper, errors and model too? I mean, how can I use my all UDF and classes in all projects? How can I also call each application without setting the $application_folder variable at index.php, since it allow one application at the time?

Thanks for any help you can give.

Best regards.
#2

[eluser]sophistry[/eluser]
ah, the old chestnut. "application level shared resources". there are a few ways to do this (most involve overriding router and loader and hacking CI core), but i think the most straightforward is to use symlinks in your filesystem to trick CI into using centrally located resources.

someone wrote up something a few years ago on this... should still be valid http://www.codeofficer.com/blog/entry/mu..._symlinks/

that article references a link on the CI forums.
#3

[eluser]tomcode[/eluser]
See this post




Theme © iAndrew 2016 - Forum software by © MyBB