views:

325

answers:

2

My symfony project is divided into several apps. Using the sfDoctrineGuard plugin I'd like to create another app just for login, and redirect to the appropriate app after login.

My questions:

• Is this advisable or does it go against how sfGuard is supposed to work?

• Is there a way to redirect between applications without hardcoding the entire url? Is there a "symfony way" of doing it, or is this not how projects are supposed to function?

(All I can find is this thread which is kind of vague on the specifics.)

A: 

I don't know the answer to the first part; but there is a cross-application link plugin that I have used.

Colin Fine
A: 
  • I think it doesn't. Symfony uses the same session for both users (frontend and backend) so just use the same sfBasicSecurityUser class (the same myUser class)
  • You probably need Cross Application Links. I've already used this tutorial and it works perfectly!
Martin Sikora
I ended up rethinking my project architecture and it made more sense to combine my apps so as not to need multiple logins, but the cross application links look interesting.
gruner