Welcome Guest, Not a member yet? Register   Sign In
How to detect if a class/method exists before it's called by CI?
#5

[eluser]kilishan[/eluser]
I've figured out a partial way to do this. For the wiki-type functionality, it looks like it's possible to just override the show_404() function in the Exceptions library. Make it check to see if the app is using Ocular Pages and, if so, tell it do display that default view. If not using the Pages functionality, then proceed as normal.

I think this will actually work with showing view for views that don't exist, also, but I haven't had a chance to dig into the code and make sure all of the required routing information is still available, though I think it should be.


Messages In This Thread
How to detect if a class/method exists before it's called by CI? - by El Forum - 01-17-2008, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB