Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Retrieving data and callbacks (Form Validation) #1208

Closed
RS71 opened this Issue · 1 comment

2 participants

@RS71

This is somewhat related to the introduction of set_data() to form_validation, which allows someone to pass an array instead of using POST. (#1121)

  • I believe there should be method for retrieving validated data (for use with prep functions -- maybe returning data on success?).
  • If I am not mistaken, callbacks don't work outside controllers.

This would be great for moving validation to the model.

I don't know the importance of this but: if set_data is called after set_rules, validation doesn't work correctly. Maybe add something in the docs?

@narfbg
Owner

You've set the data yourself, why do you need to get it from the library?

@narfbg narfbg referenced this issue from a commit
@narfbg narfbg Switch CI_Form_validation:: to public
Makes it easier to access the data after validation (issue #1208)
cff3580
@narfbg narfbg closed this
@nonchip nonchip referenced this issue from a commit in nonchip/CodeIgniter
@narfbg narfbg Switch CI_Form_validation:: to public
Makes it easier to access the data after validation (issue #1208)
605777c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.