Nathan Rixham schreef:
Not sure why I'm sharing this; but it could be a gotcha
been there, got the T-shirt, see below for my work around.
class testOuter {
private $base;
public function __construct()
{
$this->base = new testBase;
}
public function __call(
You should read this:
http://us3.php.net/manual/en/language.oop5.overloading.php
The magic method __call passes all the arguments pass to the function
that is not there in 1 array. So every time you execute a function that
is not there and __call is called , you will add another outer
array. Thi
Not sure why I'm sharing this; but it could be a gotcha
base = new testBase;
}
public function __call( $methodName , $values )
{
echo __METHOD__ . PHP_EOL;
print_r( $values );
$this->base->test( $values );
}
}
$test
3 matches
Mail list logo