I
I
iamsaint2013-08-28 16:31:44
Yii
iamsaint, 2013-08-28 16:31:44

Yii. Question about route in urlManager

Good afternoon.
Please tell me how to make a rule for route so that all requests of the form:

http://имя_сайта.ru/users/имя_пользователя


handled by the controller
users/profile/view?id=имя_пользователя

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igogo2012, 2013-08-28
@Igogo2012

'/users/<id:(\w+)>/' => '/users/profile/view',

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question