Welcome Guest, Not a member yet? Register   Sign In
Access libraries and models from 404
#1

[eluser]darrenm[/eluser]
Hi there

I'd like to make my 404 output based on my view files, but the 404 runs from the Exceptions class rather than the Contoller class, so I don't have straightforward access to the Loader library.

Does anyone know of a simple strategy to get access to the Loader library? Is it as simple as including the file and making an instance, or is it already available to me via a global within the Exceptions class?

thanks
#2

[eluser]TheFuzzy0ne[/eluser]
The 404 view needs to be available before the loader is instantiated, as the Loader class is only available after the controller has loaded. So if the specified controller can't be loaded, a 404 error is displayed. However, this thread might help you: http://ellislab.com/forums/viewthread/103349/




Theme © iAndrew 2016 - Forum software by © MyBB