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

[eluser]thurting[/eluser]
The file you really should be working with is CodeIgniter.php - this is the front controller - kind of - it isn't an object - GASP - it contains the dispatch process and this is what you need.

With all respect to the dev team, it is kind of ugly.

BTW, "pre_controller" happens after the place you want to hook in. Also, "pre_system" happens before the place you want to hook in. You will probably have to rewrite this file to do what you want. If I were you, I'd rewrite it as a proper object.

If you wanted a quick and dirty solution, you could create your own hook at line 82 - or maybe line 96 after the cache has run.


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



Theme © iAndrew 2016 - Forum software by © MyBB