Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Input::get('q')) {
- $validator = Validation::forge('navbar-saerch');
- $validator->add_field('q', '', 'required|min_length[4]|max_length[32]');
- if($validator->run()) //it always returns FALSE
- {
- var_dump($validator->validated());
- }
- else
- {
- //in every case, it goes here, but the Errors-Array is also always empty
- var_dump($validator->error());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement