I don't think you need multiple applications, that will just get messy having to replicate the code over and over, and you could have unlimited companies, and then you'll have tons of applications.
I really believe the best way is to just update the model to only select/update etc companies that the user owns. You can look at the askeet tutorial, the 'tag' feature is something similar to this, where they only would then display questions with the specific tag. Daum On Nov 27, 1:40 pm, Ken Marfilla <[EMAIL PROTECTED]> wrote: > What you need here is a single sign on application. I think it is > easier to just replicate the application per company. > > On Nov 27, 1:01 pm, James <[EMAIL PROTECTED]> wrote: > > > > > I'm actually in the process of writing a plugin to extend sfGuard to > > do just this. The idea is I want a user to be able to sign up with > > the same email address as the username to multiple sights. I have a > > table of "sites" that use the common code. When a user signs up, their > > username in sfGuard becomes email address hyphen site id. so it would > > be "[EMAIL PROTECTED]" I change the login so that when they > > signin, it checks the site that they are on and take it and add it to > > the email when they log in. Then every other database table has > > references to the site id for data, so if it's a blog, then the site > > gets the blook that references that site id. I also use the site id > > to define the template layout for the site. > > > James > > > > On Nov 25, 4:55 pm, Daniel Kurman <[EMAIL PROTECTED]> wrote: > > >> Hi all. I need to do a multi company app. Is there a way to learn how > > >> to do this?. Ideas. The idea is to have a login page. Through this, > > >> the user could see only the records corresponding to his company > > >> only. > > >> I thought to use some kind of filter, but I don´t know if this could > > >> be done. > > > >> Thanks in advance- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
