PHP Classes

File: Mongo/Mongo.php

Recommend this page to a friend!
  Classes of Maicon gonçalez   PHP MongoDB Mini ODM   Mongo/Mongo.php   Download  
File: Mongo/Mongo.php
Role: Configuration script
Content type: text/plain
Description: Mongo Config Connect
Class: PHP MongoDB Mini ODM
Store and retrieve objects in MongoDB databases
Author: By
Last change:
Date: 9 years ago
Size: 402 bytes
 

Contents

Class file image Download
<?php
/*
    MongoDB Experimental Mini ORM
    Version 1.0
    Author Maicon (maiconphpnet@gmail.com)
*/

require_once("Mongo/MongoConfig.php");
$Mongo = new MongoConfig();
$Mongo->setModelBase("Model_");
$Mongo->setPatchModel("Models/");
$Mongo->setBase(dirname(__FILE__));
//$Mongo->setConnection($db,$host,$user,$pass);

$Mongo->setConnection("teste","ds051788.mongolab.com:51788/teste","teste","teste");

?>