Welcome Guest, Not a member yet? Register   Sign In
HMVC bug? CI_Exceptions is not working inside models
#5

[eluser]CtheB[/eluser]
Well i've got it working. Not very ellegant, but in a codeigniter way.

My code was:
Code:
catch(PDOException $e)
{
            CI_Exceptions::handleException($e);
}

And now it is:
Code:
catch(PDOException $e)
{
             show_error($e);
}

Only the helper is autoloaded and the helper loads the class i think. So now the show_error is loading the CI_Exceptions:Confusedhow_error wich is loading the CI_Exceptions:handleException. So it finally works for me now.


Messages In This Thread
HMVC bug? CI_Exceptions is not working inside models - by El Forum - 12-09-2009, 08:37 AM
HMVC bug? CI_Exceptions is not working inside models - by El Forum - 12-09-2009, 12:10 PM
HMVC bug? CI_Exceptions is not working inside models - by El Forum - 12-09-2009, 01:59 PM
HMVC bug? CI_Exceptions is not working inside models - by El Forum - 12-10-2009, 05:59 AM
HMVC bug? CI_Exceptions is not working inside models - by El Forum - 12-10-2009, 12:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB