Search code examples
phpkohanakohana-auth

Kohana validation 3.3


How do I properly validate a submitted form? I've been looking in the documentation on http://kohanaframework.org/3.3/guide/orm/validation and http://kohanaframework.org/3.3/guide/kohana/security/validation, the latter also tells me "This page needs to be reviewed for accuracy by the development team. Better examples would be helpful."

What I'm trying to achieve is registering a User (the Auth module) I'm not quite sure which one too use and why.


Solution

  • http://kohanaframework.org/3.3/guide/orm/validation This is how you validate your models

    http://kohanaframework.org/3.3/guide/kohana/security/validation And that's how you validate the user input.

    I have used both in a few projects after reading the examples on above links and everything worked pretty much fine.