Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class Autoloading?
#7
Edited the example above; works with autoloading as desired. No need for a separate autoload register (the calls to the common hook essentially form that).

Quote:All classes should be available, auto load or not.

If done statically, the order needs to ensure that any dependencies exist at the time the include function is called, and any time a new class is created, said static list needs to be appended. The autoloading example removes the need to do this.
Reply


Messages In This Thread
Class Autoloading? - by Angryboy - 2014-03-14, 04:40:58
RE: Class Autoloading? - by shawn_a - 2014-03-14, 05:02:02
RE: Class Autoloading? - by Angryboy - 2014-03-14, 05:07:13
RE: Class Autoloading? - by shawn_a - 2014-03-14, 06:28:05
RE: Class Autoloading? - by Angryboy - 2014-03-14, 08:43:46
RE: Class Autoloading? - by shawn_a - 2014-03-14, 09:44:52
RE: Class Autoloading? - by Angryboy - 2014-03-14, 10:15:01
RE: Class Autoloading? - by shawn_a - 2014-03-14, 10:27:05
RE: Class Autoloading? - by shawn_a - 2014-03-14, 10:34:37
RE: Class Autoloading? - by shawn_a - 2014-03-14, 12:34:53
RE: Class Autoloading? - by Angryboy - 2014-03-14, 17:59:05



Users browsing this thread: 1 Guest(s)