Skip to content

Commit 6c2c437

Browse files
committed
Update README.md
1 parent 01d0b9b commit 6c2c437

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
# MongoDB Datasource for CakePHP 1.2.x
22

3-
# About
3+
## About
44
This is a modified MongoDD Datasource originally from Yasushi Ichikawa (ichikaway) fro CakePHP 1.2.x
55

6-
# Requirements
6+
## Requirements
77
PHP >= 5, pecl mongo (http://php.net/mongo)
88

9-
# Installation
9+
## Installation
1010
To install the driver for use in a single application:<br>
11-
1. Place file "dbo_mongodb.php" into "cakephp/cake/libs/model/datasources/dbo"<br>
12-
2. Place files "schemaless.php" and "sql_sompatible.php" into "cakephp/cake/libs/model/behaviors"
11+
1. Place file __"dbo_mongodb.php"__ into directoy _"cakephp/cake/libs/model/datasources/dbo"_<br>
12+
2. Place files __"schemaless.php"__ and __"sql_sompatible.php"__ into directoy _"cakephp/cake/libs/model/behaviors"_
1313

14-
# Configuration
15-
<code>
14+
## Configuration
15+
```php
1616
<?php
1717
// app/config/database.php
1818
class DATABASE_CONFIG {
1919
var $default = array(
2020
'driver' => 'mongodb',
2121
'database' => 'sample',
2222
'host' => 'localhost',
23-
'port' => 27017,
23+
'port' => 27017,
2424
);
25-
2625
var $test = array(
2726
'driver' => 'mongodb',
2827
'database' => 'sample',
2928
'host' => 'localhost',
30-
'port' => 27017,
29+
'port' => 27017,
3130
);
3231
}
33-
</code>
34-
32+
```
3533
Special thanks to Yasushi Ichikawa (ichikaway)

0 commit comments

Comments
 (0)