create URI base on who is logged in

Hi guys,

I wanted to create a URI base on user who is logged in, but i dont have any idea on how to do that here is a sample on what i want to do

http://baseuri/username
or 
http://baseuri/email

thnks guys



34.6k

You can used router set url

@Thien thnks 4 ur idea =)

@Thien i have a question do i also have to create a separate controller for this?



34.6k

Hey

For example application Vokuro https://github.com/phalcon/vokuro/blob/master/app/controllers/SessionController.php#L68, When user login you have session user it , then

    return $this->response->redirect($this->session->username);

Also you need to setup view for it