I have a function, where if a variable is not defined, exit;
is called, therefor it should not produce anything on the page but a blank page. it produces an error message right before it is exited actually. so when its supposed to execute, because the variable is not defined, it should die, but what happens is the error message is executed, then the rest of the page loads under the error message, and does not exit. any ideas?
public function exit_error() {
parent::error_array();
$errors = $this->msg_array;
return $errors;
die(); // error should produce, then die here.
}