I have a problem with my JSON RPC service. I make a class and put it output of application folder(I put it on service folder on root directory). This servis is class which I called by jQuery and use Ajax to response database results.
How do I access to database file which is put in
application/config/database.php
Can you help me?
I have a problem with my JSON RPC service. I make a class and
Share
Load the database if it’s not loaded already:
then call the configuration items:
Update
If you are looking to get these variables outside of the codeigniter application, define
BASEPATHand include the file:then you can call the configuration items as shown above.