Answer the question
In order to leave comments, you need to log in
Yii2 + vue js. Automatic generation of form validation rules on the client side. Have you found the best way for you?
Let's say the server part of the application is written in Yii2, let's say VueJS is used on the client.
There is a desire to make the server part in the form of a REST API, and use Vue JS to the fullest on the client.
For now, it stops duplicating rules code for form/model validation on the client and server parts.
We all know that Yii generates form validation rules which are then connected on the client side.
I really don't want to duplicate the form validation rules on the client side.
Please suggest the best solution you use for translating Yii form/model validation rules to the client side.
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