Answer the question
In order to leave comments, you need to log in
How to get id in Yii2 if it's not a number?
Comrades, how in yii2 to get $id in the standard actionView controller method, if $id is a string?
I work with mongodb, where id is of type string, and if I access site.ru/controller/05as it gives a 404 error, and if I enter a number, it goes to the address
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question