OO php: static and factory classes

Kirk Cerny kirksemail at gmail.com
Fri Aug 31 16:11:35 MDT 2007


I have found that this works.

$objName = "Widgit";
$objName->getWidgit();

And this works also.

Widgit::getWidgitStatic();

But this does not.

$objName = "Widgit";
$objName::getWidgitStatic();

Why does the bottom one not work?



More information about the PLUG mailing list