Hey All, I'm kind of a beginner with PhalconPHP but loving it so far.
I'm having some trouble understanding one thing, even after reading the documentation I've seen no example of how to handle form submition.
The two only options I thought of is
the form action could point to controller/add in POST which would need a addAction() method in my controller and then bind $_POST to a Model, and save that after validation. But that means I have to do some sort of "if" to make sure If i'm in POST (handle data) or GET (show form).
Use the Event Callbacks and perform the save on the "afterValidation" of a Phalcon\Mvc\Form ... but again, not sure if this makes sense, plus - I might not use Phalcon\Mvc\Form because I'm not sure how to make it print out the specific HTML structure I need.
So those are the two options I thought of, would love to hear your pointers / opinions on this.
Thank you very much Shai.