Hi,

i'm building a quite complex Cake PHP application and i need to be able
to use different database configurations depending on what user is
logged in. The users of my system will manage quite large amounts of
data so i need to keep their data separated. At the moment every user
has a user specific table prefix on their private tables. That prefix
is stored in the database and stored in a session variable when the
user logs in.

Now, what i want to do is to be able to use the logged in users prefix
in some of my models to give the users access their own tables.

Can this be done? If so, how?

If anyone can help me work this out, i'll be very grateful.

Note: I posted a similar question about a month ago with the subject
"Set table prefix from session?" but i couldn't make it work the way i
wanted using that solution.

/David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to