2014-07-01 2 views
0

이 여기에 코드입니다 : 전화 : 찾을 수는()

require_once("config.php"); 
class xy { 
// List all the ingredients in a container 
public function objectsInContainer($container) { 
    global $mongo, $box; 
    $hereUGo = $mongo->selectDB($box); 
    $cursor = $hereUGo->find(); 
    return $cursor; 
} 
} 

와의 config.php에

,

$mongo = new Mongo(); 
$box = $mongo->selectDB($box); 

PHP 나에게 PHP Fatal error: Call to undefined method MongoDB::find()을 말하고있다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?

+0

garbage

+0

[몽고 교실] (http://www.php.net/manual/en/class.mongo.php). – sectus

답변

관련 문제