Hi, I've just started using Mojolicious and I'm new to quite a few of the concepts. I'm building a form based app that has templates that extend from a basic from, for example:
*basic form ep template* name email tel *second form extends basic* accommodation choice event choice *third form extends basic* quantity Can I create a form validation object to check required fields that I can extend based on the form submitted? Sorry if that's a stupid question but like I said I’m new to a lot of the concepts and trying to figure out best practices. I’ve looked at validator docs but I’m a little unsure how to proceed. So if I have: my $validatorBasic = Mojolicious::Validator->new; my $validation = $validatorBasic->validation; … $validation->required(‘name’)->size(50); $validation->required(‘email’)->size(50); $validation->required(‘tel’)->size(11); How could I extend this for second form, third form? Also is there a helper to check for types like number, email or should I just use like(regex)? Really liking Mojolicious btw. Thanks in advance. Horsey -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
