I'm kinda used to the mvc model. So I would like to know if there is any way to work in validation doing something to tell "field name can't be blank" or "field e-mail must be valid" other than using js. Like creating my own model, if it were a mvc application
Unfortunately there's really no validation framework for blocks at this point. It'd be a good thing for us to add, certainly. We will put it on our to-do list. The javascript validation that blocks currently can use is sort of a stopgap solution.
I wanted to do a form, where I would ask searches for submiting their data, so we would have a database here, but I wanted to validate their phone numbers, e-mails, ids, so I guess the only way is javascript right ?
And in your controller create the method save_information.
publicfunction save_information(){}
And you can do all sorts of validation stuff there. For example, this is how we handle registration, etc... If you want to see how we do stuff like that, check out