Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different instantiation of a module
#2
The difference is that getInstance() will include the class file for you. In other words,

$focus = new XX();

requires that you have previously done

require_once('modules/XX/XX.php');

while the getInstance will check if the file is not loaded yet and load it for you
Joe
TSolucio
Reply


Messages In This Thread
RE: Different instantiation of a module - joebordes - 12-13-2016, 12:08 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)