Skip to content

kotomono7/mongodb_source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Datasource for CakePHP 1.2.x

About

This is a modified MongoDB Datasource originally from Yasushi Ichikawa (ichikaway) for CakePHP 1.2.x

Requirements

PHP >= 5, pecl mongo (http://php.net/mongo)

Installation

To install the driver for use in a single application:

  1. Place file "dbo_mongodb.php" into directory "cakephp/cake/libs/model/datasources/dbo"
  2. Place file "schemaless.php" and "sql_sompatible.php" into directory "cakephp/cake/libs/model/behaviors"

Configuration

<?php
// app/config/database.php
class DATABASE_CONFIG {
	var $default = array(
		'driver' => 'mongodb',
		'database' => 'sample',
		'host' => 'localhost',
		'port' => 27017,
	);
	var $test = array(
		'driver' => 'mongodb',
		'database' => 'sample',
		'host' => 'localhost',
    	'port' => 27017,
	);
}
?>

Special thanks to Yasushi Ichikawa (ichikaway)

About

Custom MongoDB datasource for CakePHP 1.2.x

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages