Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function username_check($str)
- {
- if ($str == 'test')
- {
- $this->form_validation->set_message('username_check', 'The {field} field can not be the word "test"');
- return FALSE;
- }
- else
- {
- return TRUE;
- }
- }
Add Comment
Please, Sign In to add comment