Welcome Guest, Not a member yet? Register   Sign In
Probably a silly question
#2

[eluser]WanWizard[/eluser]
When you look in the loader code, you'll see that first the orginal class is loaded ('Class CI_Router'), then a check is made for the existence of an extension ('Class MY_Router extends CI_Router'), which is then loaded.

Based on the existence of the extension, it then does a '$CI->Router = new CI_Router()' or a '$CI->Router = new MY_Router()', thus making sure you can access the router class consistently, whether or not an extension is present.


Messages In This Thread
Probably a silly question - by El Forum - 05-16-2010, 02:13 AM
Probably a silly question - by El Forum - 05-16-2010, 05:10 AM
Probably a silly question - by El Forum - 05-16-2010, 11:55 AM
Probably a silly question - by El Forum - 05-16-2010, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB