Welcome Guest, Not a member yet? Register   Sign In
Manually adding an error to form validation
#4

[eluser]Colin Williams[/eluser]
The second parameter of $this->load->view() accepts an array where you could add variables directly to the view. Or, you can add variables globally to views with $this->load->vars(). Check the docs for more info.

Code:
$errors = validation_errors();
$errors .= 'Some other error';
$this->load->vars(array('form_errors' => $errors));


Messages In This Thread
Manually adding an error to form validation - by El Forum - 01-02-2010, 05:00 PM
Manually adding an error to form validation - by El Forum - 01-02-2010, 10:58 PM
Manually adding an error to form validation - by El Forum - 01-03-2010, 05:27 PM
Manually adding an error to form validation - by El Forum - 01-03-2010, 10:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB