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

[eluser]kilishan[/eluser]
I'm working on the next update for Ocular, and am wanting to make it automatically check for existing view files even when a controller doesn't exist. The problem is that I'm not sure how to do this...

My initial thought is to hook into pre_controller(). However, the router has already run, so it should be kicking up an error at that point. Is this correct?

Does anyone have any other suggestions?

Thanks!
Lonnie


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



Theme © iAndrew 2016 - Forum software by © MyBB