set error status for a validation library for a given field true |
[eluser]Gewa[/eluser]
Hi, I didn't found a such thing. I want to set an error status for a given form field to true before the validation is run in case the file is not uploaded and set the error message for that given case . How to do it? something like Code: $this->validation->error('field_name',TRUE); so that during validation , it will understand there is error for that field and show the error in given field with show_error('field_name);
[eluser]Philipp GĂ©rard[/eluser]
Why would you set the result of a valdidation to 'true' (i.e. error found) before validating? Makes no sense to me ;-) Ah, you edit, I edit: http://ellislab.com/codeigniter/user-gui...#callbacks
[eluser]Gewa[/eluser]
I am not sure the callbacks will help... the one way I think is to make a callback function which always returns false ....
[eluser]Gewa[/eluser]
solution was Code: if (!$this->upload->do_upload($key)) |
Welcome Guest, Not a member yet? Register Sign In |