Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- member_show:
- url: /membres/profil/:id
- class: sfDoctrineRoute
- options: { model: sfGuardUser, type: object }
- param: { module: member, action: show }
- public function executeShow(sfWebRequest $request)
- {
- if($this->getUser()->isAuthenticated())
- {
- $this->member = $this->getRoute()->getObject();
- }
- else
- {
- $this->redirect('@homepage');
- }
- }
Add Comment
Please, Sign In to add comment