How do you perform Form validation without a model in Cakephp?

后端 未结 6 964
Happy的楠姐
Happy的楠姐 2021-02-13 00:06

I need to perform some validation. I don\'t have the model in the application.

Does anyone know how to do the validation without a model? Can you show me using a small s

6条回答
  •  后悔当初
    2021-02-13 00:26

    I think my first question would be this: if you don't have a model...what are you validating? Typically data collection would be done to populate a model. If you're using an alternative data repository (file, web services, etc.), a model would still be the appropriate way to access and manipulate that data.

    In short, in order to better answer this, I think a little more context would be helpful and maybe even necessary.

提交回复
热议问题