Symfony MOdule redirection

Reply

Join Date: Jul 2006
Posts: 197
Reputation: vssp has a little shameless behaviour in the past 
Solved Threads: 5
vssp vssp is offline Offline
Junior Poster

Symfony MOdule redirection

 
0
  #1
Oct 9th, 2008
Hi Friends

I am working on symfony project. This is new frame work for me. So Please clarify my doubt.

This is looklike community site. user able to create own sub domine. Public site have one login page ex(www.sample.com) individual user have one login page ex (www.vssp.sample.com).

How to seprate the login for public and user level?

I tried .htacces its not working . Please advice.

This Project have single controller. how to mange t wo category (public,user) .

Advance thanks for your reply.


Thanks
Thanks
VSSP
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,402
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 225
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Symfony MOdule redirection

 
0
  #2
Oct 9th, 2008
Symfony redirects are done with $action->forward('module', 'action'); OR $action->redirect('<route>'); . I'm not exactly sure what you're trying to accomplish.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 197
Reputation: vssp has a little shameless behaviour in the past 
Solved Threads: 5
vssp vssp is offline Offline
Junior Poster

Re: Symfony MOdule redirection

 
0
  #3
Oct 10th, 2008
Originally Posted by ShawnCplus View Post
Symfony redirects are done with $action->forward('module', 'action'); OR $action->redirect('<route>'); . I'm not exactly sure what you're trying to accomplish.
Thanks for your reply .

This code use only inside the module. But I want to call the module different user . When i login user this goes to new page.

Please advise.
Thanks
VSSP
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,402
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 225
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Symfony MOdule redirection

 
0
  #4
Oct 10th, 2008
In the app directory app/<app>/config/settings.yml there is a configuration for login_module and login_action. Modify the action to redirect the user to the other site.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC