Form Validation Library - RoverWire/codeigniter-utilities GitHub Wiki
Official Codeginiter documentation form validation library reference
Creates a base array for the form validation configuration
Trigger: ciformvalconf
Results:
$conf = array(
array(
'field' => '',
'label' => '',
'rules' => ''
)
);
$this->form_validation->set_rules($conf);
Creates a key array to be used within configuration array
Trigger: ciformvalrule
Results:
array(
'field' => '',
'label' => '',
'rules' => ''
)
Calls a helper for the field error. You can customize the delimiters.
Trigger: ciformerr
Results: form_error('field', '<div class="error">', '</div>');
Trigger: ciformvalrun
Results $this->form_validation->run();
Trigger: ciformvaldel
Results: $this->form_validation->set_error_delimiters('<div class="error">', '</div>');
Trigger: ciformvalmes
Results: $this->form_validation->set_message('field', 'message');
Trigger: ciformvalset
Results: $this->form_validation->set_rules('field', 'label', 'required|trim');
This calls a helper to display form validation errors. The delimeters suggested can be modified or discarded.
Trigger: civalerr
Results: validation_errors('<div class="error">', '</div>');