There might be times when you want to load a custom config file for your application, in order to easily maintain your database login information or override default settings.

To do this, you only need to call the Raxan::loadConfig() method as shown in the example below.


    require_once 'raxan/pdi/autostart.php';


    // ...your code here...


Raxan includes a sample configuration file called gateway.config.sample.php, that's located inside the raxan/pdi folder.

To quickly get started with your custom config file, simply copy and rename gateway.config.sample.php then use your favorite text editor to modify the default settings

In addition to loading your a config file, you can also make on the fly configuration changes by using the Raxan::config($key, $value) method:


    require_once 'raxan/pdi/gateway.php';



For more information see the User Guide - Custom Configuration.

Posts: 1
Reply #1 on : Mon December 01, 2014, 14:44:46

Leave a Comment

Required fields are marked with *.
If you have trouble reading the code, click on the code itself to generate a new random code.