So just for reference, here's what I did.
Create a validator for your custom fields. Add the rules and let it validate. Then validate the module with a module->save(), and catch the errors in you own validator:
$this->load->library('valida…
Ah merci, I missed that option, works like a charm!
Ok, I'm gonna try to merge the validation together, see how that works out.
Thanks for the answers!
And while we're at it.... another question:
The Controller adds a 'terms' checkbox field to the form fields retrieved from the Module.
Of course, people must check this box to agree to the terms, so I would like to add a 'required' validation rule t…
Ah thanks!
I tried to make it possible to reference site variables with their names instead of ids. Here's what I came up with: (create fuel/modules/fuel/controllers/sitevariables.php)
<?php require_once('module.php'); class Sitevariables exte…