Hello, i’m new here, and i’m starting to use CI.
I’ve tried the search but i couldn’t find anything helpfull to me :c
I understand the MVC pattern, but i need some help to design my system structure.
What i want to do using CI is to have 3 websites using only one system folder.
2 of that websites are going to be a customer area and an admin panel and the other one is going to be my normal website.
I know how to achieve that, 3 application directories, not a big deal i think, but i want to access the customer and the admin panel through a subdomain, how can i configure my CI and/or my .htaccess to achieve this?
The structure i have now is this:
admin
|- app ( application folder )
|- index.php ( this is the normal index.php provied by CI , the system_path is ../system)
customer
|- app
|- index.php
system
index.php
It works the way i want, but i don’t know if i can do this another way.
Edit: I’m using CI2