Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public function username_check($str)
  2. {
  3. if ($str == 'test')
  4. {
  5. $this->form_validation->set_message('username_check', 'The {field} field can not be the word "test"');
  6. return FALSE;
  7. }
  8. else
  9. {
  10. return TRUE;
  11. }
  12. }
Add Comment
Please, Sign In to add comment