Answer the question
In order to leave comments, you need to log in
How to output the model id in encrypted form to the front?
There is a model. I need to make sure that id's are sent to the front in encoded form.
For example, in Silex, I could beat this moment due to the Normalizeable Interface, is there something similar in yii2?
Answer the question
In order to leave comments, you need to log in
Do you need decryption? If not, then it can be trite$hash = md5($model->id.$secret);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question