Generic Custom Validaton Page

Hi there.

I want to create my custom generic validation page in cakephp 3.8. and access the functions through model in same way as cakephp does. I just want to create some some functions in a different page, that is accessible from any model.

Can anyone help??
Thanx in advance.