File tree 1 file changed +10
-12
lines changed 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
# MongoDB Datasource for CakePHP 1.2.x
2
2
3
- # About
3
+ ## About
4
4
This is a modified MongoDD Datasource originally from Yasushi Ichikawa (ichikaway) fro CakePHP 1.2.x
5
5
6
- # Requirements
6
+ ## Requirements
7
7
PHP >= 5, pecl mongo (http://php.net/mongo )
8
8
9
- # Installation
9
+ ## Installation
10
10
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"_
13
13
14
- # Configuration
15
- < code >
14
+ ## Configuration
15
+ ``` php
16
16
<?php
17
17
// app/config/database.php
18
18
class DATABASE_CONFIG {
19
19
var $default = array(
20
20
'driver' => 'mongodb',
21
21
'database' => 'sample',
22
22
'host' => 'localhost',
23
- 'port' => 27017,
23
+ 'port' => 27017,
24
24
);
25
-
26
25
var $test = array(
27
26
'driver' => 'mongodb',
28
27
'database' => 'sample',
29
28
'host' => 'localhost',
30
- 'port' => 27017,
29
+ 'port' => 27017,
31
30
);
32
31
}
33
- </code >
34
-
32
+ ```
35
33
Special thanks to Yasushi Ichikawa (ichikaway)
You can’t perform that action at this time.
0 commit comments