Welcome Guest, Not a member yet? Register   Sign In
Loading a helper on error_404.php
#2

[eluser]tonanbarbarian[/eluser]
the issue is that in a lot of cases (most actually) the controller is not loaded when the 404 error is processed
this is because CI processes the route to determine the controller to load. if the router is unable to determine a controller it goes to 404

however this is nothing stopping you from loading the helper in other ways
you can determine the path to the helper yourself and include it
looking in the system/libraries/Loader.php for the helper method will give you some ideas as to the paths you need to check and or include to load a helper


Messages In This Thread
Loading a helper on error_404.php - by El Forum - 11-05-2010, 03:13 PM
Loading a helper on error_404.php - by El Forum - 11-05-2010, 03:24 PM
Loading a helper on error_404.php - by El Forum - 11-05-2010, 03:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB