Central form handeling |
[eluser]PhilTem[/eluser]
Technically speaking, the OP might want to create a controller called forms and have each form's action point to www.example.com/forms/example_form where a _remap function would catch every call and perform the form-validation based on a hidden input field. However, any form-validation errors will be lost since they are flash-messages and you will have a redirect after the form was submitted (technically you should want to have a redirect afterwards) thus you have to work around the issue of loosing your form-validation errors. Furthermore, you can have a global configuration of form-validation options in APPPATH . 'config/form_validation.php' which will be auto-loaded if you load the form-validation library. Read into the user's guide on that topic |
Messages In This Thread |
Central form handeling - by El Forum - 10-23-2012, 05:26 AM
Central form handeling - by El Forum - 10-23-2012, 10:16 AM
Central form handeling - by El Forum - 10-23-2012, 11:19 AM
Central form handeling - by El Forum - 10-23-2012, 12:54 PM
Central form handeling - by El Forum - 10-23-2012, 01:19 PM
Central form handeling - by El Forum - 10-23-2012, 01:25 PM
|