File tree 5 files changed +24
-3
lines changed 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,22 @@ Documentation is located at http://benedmunds.com/ion_auth/
16
16
Just copy the files from this package to the correspoding folder in your
17
17
application folder. For example, copy Ion_auth/config/ion_auth.php to
18
18
system/application/config/ion_auth.php.
19
+
20
+ ##Relational DB Setup
19
21
Then just run the appropriate SQL file (if you're using migrations you can
20
22
get the migrations from JD here:
21
- https://github.com/iamfiscus/codeigniter-ion-auth-migration ).
23
+ https://github.com/iamfiscus/codeigniter-ion-auth-migration ).
24
+
25
+ ##MongoDB Setup
26
+ Integrate the following projects to enable MongoDB support in CodeIgniter:
27
+
28
+ CodeIgniter MongoDB Active Record Library - http://github.com/alexbilbie/codeigniter-mongodb-library/tree/v2
29
+ CodeIgniter MongoDB Session Library - http://github.com/sepehr/ci-mongodb-session
30
+
31
+ Set $config[ 'use_mongodb'] = TRUE; in the config file and then run the following command:
32
+
33
+ $ mongorestore sql/mongo
34
+
22
35
23
36
###Usage
24
37
In the package you will find example usage code in the controllers and views
Original file line number Diff line number Diff line change 4
4
| -------------------------------------------------------------------------
5
5
| Database Type
6
6
| -------------------------------------------------------------------------
7
- | If set to TRUE, IonAuth will use MongoDB as its database backend.
7
+ | If set to TRUE, Ion Auth will use MongoDB as its database backend.
8
+ |
9
+ | If you use MongoDB there are two external dependencies that have to be
10
+ | integrated with your project:
11
+ | CodeIgniter MongoDB Active Record Library - http://github.com/alexbilbie/codeigniter-mongodb-library/tree/v2
12
+ | CodeIgniter MongoDB Session Library - http://github.com/sepehr/ci-mongodb-session
8
13
*/
9
14
$ config ['use_mongodb ' ] = FALSE ;
10
15
11
16
/*
12
17
| -------------------------------------------------------------------------
13
18
| MongoDB Collection.
14
19
| -------------------------------------------------------------------------
15
- | IonAuth uses a simplified schema when using MongoDB as backend, here they are:
20
+ | Setup the mongodb docs using the following command:
21
+ | $ mongorestore sql/mongo
22
+ |
23
+ | Ion Auth uses a simplified schema when using MongoDB as backend, here they are:
16
24
|
17
25
| groups: {
18
26
| _id: GROUP_ID,
You can’t perform that action at this time.
0 commit comments