D
D
Dmitry2018-10-09 13:33:55
Magento
Dmitry, 2018-10-09 13:33:55

How to validate server side data in Magento 2?

Magento 2, I want to validate data on the server side.
The system itself, as I understand it, primarily involves client-side validation (JS), but there are validators in the Magento Framework, but I did not find any documentation on the Magento Framework.
How to work with it?
If someone works closely with Magento 2, then please tell me the resources specifically for this tool and, perhaps, sets of best practices when developing on Magento 2.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ipokos, 2018-10-12
@ipokos

what data needs to be validated?
Example:

Zend_Validate::is($yourRequestData->getEmail(), 'EmailAddress')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question