Re: [PHP] pain

2008-09-10 Thread Jochem Maas
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(

Re: [PHP] pain

2008-09-10 Thread Micah Gersten
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

[PHP] pain

2008-09-10 Thread Nathan Rixham
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