Label in Form Validation |
How do I put the name of the label in validation?
Not the field name. in codeigniter 3 I did this PHP Code: $this->form_validation->set_rules('first_name','First Name','required'); how do i do this codeigniter n 4? I'm trying this, but I can not. PHP Code: $validation->setRule('first_name','First Name','required'); This also does not work PHP Code: $validation->setRules(['first_name' => 'First Name', 'required']); |
Messages In This Thread |
Label in Form Validation - by Flavio Cesarino - 11-08-2017, 01:05 PM
RE: Label in Form Validation - by InsiteFX - 11-09-2017, 03:37 AM
RE: Label in Form Validation - by Flavio Cesarino - 11-09-2017, 05:31 AM
RE: Label in Form Validation - by Flavio Cesarino - 11-09-2017, 08:52 AM
RE: Label in Form Validation - by donpwinston - 11-09-2017, 11:09 AM
RE: Label in Form Validation - by Flavio Cesarino - 11-09-2017, 01:36 PM
RE: Label in Form Validation - by donpwinston - 11-09-2017, 02:29 PM
RE: Label in Form Validation - by Flavio Cesarino - 11-09-2017, 02:30 PM
RE: Label in Form Validation - by kilishan - 11-09-2017, 02:40 PM
RE: Label in Form Validation - by averroez - 11-15-2017, 12:11 PM
|