11-08-2017, 01:05 PM
How do I put the name of the label in validation?
Not the field name.
in codeigniter 3 I did this
how do i do this codeigniter n 4?
I'm trying this, but I can not.
This also does not work
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']);