• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array in form validation

#1
Hello! 

I had to make CI core modification to make the form validation work with arrays (multiple rows on form), according to this guide: 
http://pgmmer.blogspot.hu/2011/05/codeig...-with.html
(its from 2011). 

Is it possible to make it default in CodeIgniter? 

Thanks, 
Lajos
Reply

#2
I thought I had added that in, but guess I hadn't gone back and done that after building the dot array syntax array searching library. I just pushed a commit in the repo that allows you to validate arrays using "dot array syntax", like:

Code:
questions.name
questions.*.name

etc.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.