Reputation: 164
I am trying to validate the username in CodeIgniter using the form_validation library. What I found on the docs was $this->form_validation->set_rules('username', 'Username', 'required');
. I'm wondering what are the parameters set in the set rules function? What are they, are they really necessary? I tried to look for the explanation somewhere but never found anything. Can anyone help me understand this?
Upvotes: 0
Views: 289
Reputation: 299
$this->form_validation->set_rules('username', 'Username', 'required');
Upvotes: 1