title: Symfony - how to generate url with parameters in controller
body: <p>I want to generate a url like ../profile/firstname.lastname</p>
  
  <p>But i don't understand how i can do this because i want in my php also the id from the user.</p>
  
  <p>this is my controller: </p>
  
  <pre><code>       $controllers
              -&gt;match('profile/{firstname.lastname}/', array($this, 'profile'))
              -&gt;assert('userId', '\d+')
              -&gt;method('GET|POST')
              -&gt;before(array($this, 'checkLogin'))
              -&gt;bind('home.profile');
  </code></pre>