ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Best Approach for this system

December 12, 2010 11:53am

Subscribe [2]
  • #1 / Dec 12, 2010 11:53am

    Glazz

    170 posts

    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

  • #2 / Dec 13, 2010 8:03am

    smilie

    506 posts

    Well, that should work - just add subdomains in the DNS, point them to the IP of your server and change config files (config.php) of every website to use correct sub domain…

    That should be all to get it working.

    Cheers,
    Smilie

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases