PHP 7, Mongo 3, Phalcon 3 incubator library 3.4 from https://github.com/phalcon/incubator/releases
PROBLEM: trying to connect to mongo. In controller when i run ->save() i get fatal error ... Fatal error: Class 'mongoid' not found in
CODE:
# bootstrap
$mongo = new MongoClient($dburl);
return $mongo->selectDatabase($dbname);
# controller...
$user = new \MyApp\Models\Users();
$user->email = $this->request->getPost('email', 'striptags');
$user->name = $this->request->getPost('name', 'striptags');
$user->password = $this->security->hash($this->request->getPost('password'));
$user->save();
Any ideas on how to fix?