creating a form_validators for dates |
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
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
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 )
|
Welcome Guest, Not a member yet? Register Sign In |