Retrieving data and callbacks (Form Validation) #1208

Closed
RS71 opened this Issue Mar 20, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

RS71 commented Mar 20, 2012

This is somewhat related to the introduction of set_data() to form_validation, which allows someone to pass an array instead of using POST. (EllisLab#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?

Contributor

narfbg commented Oct 24, 2012

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

@narfbg narfbg added a commit that referenced this issue Nov 26, 2012

@narfbg narfbg Switch CI_Form_validation:: to public
Makes it easier to access the data after validation (issue #1208)
cff3580

narfbg closed this Nov 30, 2012

@nonchip nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013

@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