Welcome Guest, Not a member yet? Register   Sign In
Sub Applications
#1

[eluser]Unknown[/eluser]
I want my application to have sub applications, or to phrase it differently; multiple websites that use the same theme. A perfect example of what I want can be found on the BBC website, they have sub websites on the same website: http://www.bbc.co.uk/news/ and http://www.bbc.co.uk/weather/

So instead of: example.com/controller/action
I would like: example.com/website/controller/action

I'm guessing I would have to make website folders in my controllers and views to keep organised:
- app/
- controllers/
- website1/
- website2/
- views/
- website1/
- website2/

How exactly would I go about doing this using the Code Igniter framework?
Thanks.
#2

[eluser]gtBris[/eluser]
From the BBC example I would say weather and news would actually be the controllers... if they are using mvc. Of course it could be setup a million different ways but that could make it nice and clean. Heaps of content doesn't necessarily mean the structure has to be complicated.

What's your application about? Why does it need "sub-applications"?

#3

[eluser]gtBris[/eluser]
.. this is about multiple apps:
http://ellislab.com/codeigniter/user-gui..._apps.html

I'd go this route if those websites really are meant to be separate... or are they just different controllers?
#4

[eluser]Unknown[/eluser]
[quote author="gtBris" date="1371176007"].. this is about multiple apps:
http://ellislab.com/codeigniter/user-gui..._apps.html

I'd go this route if those websites really are meant to be separate... or are they just different controllers?
[/quote]

Thanks, that's exactly what I was looking for.




Theme © iAndrew 2016 - Forum software by © MyBB