src/Towel/Controller/User.php
public function profileShow()
    {
        if (!$this->isAuthenticated()) {
            return $this->redirect('/login');
        }

        $userModel = $this->session()->get('user');
        return $this->twig()->render('User\profile.twig', array('user' => $userModel));
    }
public function profileShow()
    {
        if (!$this->isAuthenticated()) {
            return $this->redirect('/login');
        }

        $userModel = $this->session()->get('user');
        return $this->twig()->render('User\profile.twig', array('user' => $userModel));
    }
public function profileShow ( ) { if ( ! $ this -> isAuthenticated ( ) ) { return $ this -> redirect ( '/login' ) ; } $ userModel = $ this -> session ( ) -> get ( 'user' ) ; return $ this -> twig ( ) -> render ( 'User\profile.twig' , array ( 'user' => $ userModel ) ) ; }
Shows the profile page.

@return string|\Symfony\Component\HttpFoundation\RedirectResponse
Shows the profile page .