• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating a form_validators for dates

#1
creating a form_validators for dates, how to proceed?

view.modulo

<div class="form-group">
                        <label class="col-sm-2 control-label">Data de Inativação</label>
                       <div class="col-sm-2">
                       <input type="date" name="data_inativacao" class="form-control" placeholder="Data de Inativação" required >
                    </div>



I want to use validation in the controler, in the insertion of the data
Reply

#2
You can extend CI's Form_validation  library and write your own method to validate dates
https://www.codeigniter.com/user_guide/g...aries.html
Reply

#3
DATETIME validation in CodeIgniter or how to create your own validation rules with callbacks and/or extending the form validation library
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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