Guest User

Untitled

a guest
Jan 15th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. member_show:
  2. url: /membres/profil/:id
  3. class: sfDoctrineRoute
  4. options: { model: sfGuardUser, type: object }
  5. param: { module: member, action: show }
  6.  
  7. public function executeShow(sfWebRequest $request)
  8. {
  9. if($this->getUser()->isAuthenticated())
  10. {
  11. $this->member = $this->getRoute()->getObject();
  12. }
  13. else
  14. {
  15. $this->redirect('@homepage');
  16. }
  17. }
Add Comment
Please, Sign In to add comment