Just curious...  This may have been asked before but I missed it in my
searches...  I am designing a multi-site app, where each sub-site is a
seperate app, but yet part of the larger core...  The following layout
is what I am after, any pointers to such would be helpful...

http://www.domain.com (All users start / login here)

Once logged in, a user will see a menu show up on the right or left,
depending on the theme they have set in their preferences, that will
allow them to access the sub-apps, such as:

http://sub1.domain.com
http://sub2.domain.com
http://sub3.domain.com
etc...

If the user tries to directly access one of the sub-apps, the system
should re-route them back to http://www.domain.com to login...

While at first look this should be simple, (and is, if I were using
one single DB), but since I am using a DB per sub-app, so I can take
entire sites / DBs offline periodically for optimization, maintance,
etc, not to mention keep from having a gigabyte sized DB to work on, I
need a way to reference data from the core site's DB to user data in
the sub-app's DB...

Right now, I have my cake libraries installed under /home/user/cake,
and each sub-app is installed as:
/home/user/public_html/sub1/app
/home/user/public_html/sub2/app
/home/user/public_html/sub3/app
etc...

The root site (http://www.domain.com) is installed as: /home/user/
public_html/app

That part I have running right...  So now I just need to share the
login status...  Since all sites use the same basic theme / user
preferences data, what I am thinking is having Cake reference the root
site's DB to get the user preference data from the Users table, then
switching to it's own DB and using the user's ID from the gathered
preference data to reference a local user table that contains the
extra items specific to that site...

Or is there a better way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to