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