[eluser]gtech[/eluser]
I know they are intended for internal use.. but its would be very easy to write an external function that just calls the internal function... I am writing a middleware management application that talks to hardware and will be used my multiple web based GUIS, so I need to return a clean error message back to the GUI application without the application halting. I have seen multiple forum posts where people want to be able to do this.
If you want to call these functions without calling the internal functions directly, just put these functions in system\database\DB_Driver.php
Code:
..
function error_message() {
$this->_error_message()
}
function error_number() {
$this->_error_number()
}
I am also using PHP5 and calling the internal functions directly still works!
As these functions are used to display the standard CI database error message when db_debug is TRUE. Is there any reason why they are internal only?