Reputation: 1273
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?
Upvotes: 0
Views: 760
Reputation: 57258
try
return forward_static_call_array(array(self::$DB, $name), $arguments);
Upvotes: 3