9 ms·
What are forms and form validation like in Yii? [Have looked at the docs, but after real-world usage] I've used form libraries from the PHPClasses one back in
by porker 10y ago
What are forms and form validation like in Yii? [Have looked at the docs, but after real-world usage]
I've used form libraries from the PHPClasses one back in 2003 through Symfony forms now (which has cognitive overload, and is so flexible as to be restrictive). Most business systems I write are data focused so forms play a massive role in them - and in my developer happiness.
- nikdaheratik 10y agoValidation works directly with the model and you can pick a number of ways to check the input and have it return an appropriate error message. The view/controller layers are very flexible and can be hooked up to anything from an HTML template using Yii to angular/bootstrap (which is what we're using) or another framework to handle the forms.