Welcome Guest, Not a member yet? Register   Sign In
User Guide suggestion - Form Validation
#1

[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()
with
Code:
form_validation->set_message()
etc.

and
Code:
class MY_Validation extends CI_Validation
should now be:
Code:
class MY_Form_Validation extends CI_Form_Validation
#2

[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?




Theme © iAndrew 2016 - Forum software by © MyBB