Urls with parameters and Yii2


i have a question about Urls and Yii2. I want to use a Url like http://localhost/username.

The username is like an parameter. So perhaps i call the index view and give the view the parameter username to show me a profil from the user.

I don’t like to use a url like http://localhost/index?show=username. Is this possible with yii2?

Thanks for answers…

I found the solution. Now it works fine.

1 Like