E ErikV New Member Jun 10, 2012 #1 Just for the case the autoload thing won't work, I wonder if it's fine with PHP to include a class inside a method?Example:\[code\]public method doSomething() { include ('MyClass.php'); $foo = MyClass::doAnotherThing();}\[/code\]
Just for the case the autoload thing won't work, I wonder if it's fine with PHP to include a class inside a method?Example:\[code\]public method doSomething() { include ('MyClass.php'); $foo = MyClass::doAnotherThing();}\[/code\]