Welcome Guest, Not a member yet? Register   Sign In
How to suppress load->view errors?
#1

[eluser]kilishan[/eluser]
I'm in the final stages of re-writing my layout library, and am running into a problem.

I want to try to load a view from the active theme and, if it wasn't found, try loading that same view from the default theme. The themes are simply folders within the /views folder. The problem is that load->view stops the controller execution and spits out an 'Unable to load the requested file: ' error.

Is there a way to keep CI from doing this? I'm really wanting to use the load->view method so that the library will be compatible with module systems, like Matchbox, who replace the Loader class to work with their modules. If that wasn't a requirement, I'd simple do a file_exists().

Any ideas? Thanks.


Messages In This Thread
How to suppress load->view errors? - by El Forum - 12-11-2009, 11:56 PM
How to suppress load->view errors? - by El Forum - 12-12-2009, 12:06 AM
How to suppress load->view errors? - by El Forum - 12-12-2009, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB