[php] call_user_func_array problems
- by Knarf
I have a class with this in
self::$DB = new PDO("mysql:dbname=$dbname;host:=127.0.0.1" , 'root' , '');
and then this
public static function __callStatic($name, $arguments)
{
return call_user_func_array(array('self::$DB', $name), $arguments);
}
How does I make it right/work?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'self::$DB' not found in D:\Mine Dokumenter\My Dropbox\www\Framework 3\database.class.php on line 19