User Guide suggestion - Form Validation |
[eluser]a&w[/eluser]
I was reading through the user guide on the change from Validation to Form Validation. I didn't really pick up on the important implementation point that I think should probably go in that first warning box. That is: When updating your code to implement the new Form Validation Class you need to replace all calls to Code: validation->set_message() Code: form_validation->set_message() and Code: class MY_Validation extends CI_Validation Code: class MY_Form_Validation extends CI_Form_Validation
[eluser]a&w[/eluser]
Also related to this user guide page: http://ellislab.com/forums/viewreply/491410/ Basically just add a section on preferred practice or options available for handling the form data after validation. It's not quite clear how the form data should be accessed (there's several threads on this in last week or two asking this). Edit: if nothing else, maybe add a note with a link to the input class. Although set_value might still be helpful if wanting to specify defaults at same time? |
Welcome Guest, Not a member yet? Register Sign In |