12-13-2016, 12:08 PM
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
$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
TSolucio