Welcome Guest, Not a member yet? Register   Sign In
One Application folder, many view folders..
#1

[eluser]mr_madness[/eluser]
Hi guys..

so, uhmm, i'd like to thank the CodeIgniter staff for creating this wonderful framework, it has been helping me quite a bit lately to build my app's way faster than before and with superb quality Big Grin


i have a question, as the topic title says, but i will try to explain my situation first, so you have an idea of what i want exactly:

I made an app with a frontend and a backend. The intention of this app is to serve many websites and they will all be hosted on a server I own. Their models and controllers will be all exactly the same, as they will all have the same functionality. Now to my question... I managed to have a system folder outside of the webroot, and this same system folder serves all applications.

Now, what i wanna do is have the same thing with the application folder. That is, have just 1 application folder, serving many view folders, which will be determined by the domain a client enters.

For example, if a client enters in example1 . com, CI will automatically use the folder "example1" for the views.
Someone else goes to example2 . com and it's view folder will be "example2".. all using the same app folder, got it?


hope someone can help me as i've been searching but many of the ways posted on the web says i have to create many app folders, but for me this is not good, as i will keep updating this app from time to time, and having to copy controllers folder by folder don't sound that funny for me... neither organized lol. Tongue

thanks in advance, sorry for the bad english, and if you need a better explanation, just tell me, i'll try my best. :cheese:

Peace Smile


Messages In This Thread
One Application folder, many view folders.. - by El Forum - 01-17-2011, 08:03 AM
One Application folder, many view folders.. - by El Forum - 01-17-2011, 09:04 AM
One Application folder, many view folders.. - by El Forum - 01-17-2011, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB