Welcome Guest, Not a member yet? Register   Sign In
Poll: Multiple app support?
You do not have permission to vote in this poll.
yes
57.89%
11 57.89%
no
31.58%
6 31.58%
maybe
10.53%
2 10.53%
Total 19 vote(s) 100%
* You voted for this item. [Show Results]

Request multiple applications support
#1
Heart 
(This post was last modified: 04-07-2015, 06:37 AM by ciadmin.)

Any consider about multiple applictions with one CI core and common models or libraries? It also can do this with current version, but any application with application folder and index.php makes duplicate methods in some model, like frontend and backend applications.
Reply
#2

You can create a "common" folder already that is treated as simply a package path to hold all common libraries, models, etc. Then create a second "application" for your backend. So yes, it's doable already without code duplication.
Reply
#3

kilishan, is right you can already use the same CI "core" for multiple projects?
You can even use multiple index.php files (with mod_rewrite) to host different CI application folders on the same server using the same core.

DMyers
Reply
#4

@dmyers - I'm not sure if you were actually asking a question there, as it sounds like you already know, but absolutely. If you're running multiple apps on the same server, just modify the path to the system folder.
Reply
#5

I usually put the system folder in a library folder somewhere and symlink to it. That way, it's not necessary to have it residing anywhere inside my application space.
Reply
#6

Yeah you can have multiple apps with multiple index but there are some problems with the namespaces for the config files in each app folder

Lets say to get the config from FrontEnd in the BackEnd, this you cannot do because all config files has same namespace and you cannot change the namespace only if you want to debug codeigniter for months..
Reply




Theme © iAndrew 2016 - Forum software by © MyBB