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.
<?php
require_once 'raxan/pdi/autostart.php';
Raxan::loadConfig('include/myconfig.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:
<?php
require_once 'raxan/pdi/gateway.php';
Raxan::config('views.path','html/views/');
?>
For more information see the User Guide - Custom Configuration.
Posts: 13

Reply #12 on : Sat October 27, 2018, 06:17:08
Posts: 13

Reply #11 on : Tue October 30, 2018, 09:02:06
Posts: 13

Reply #10 on : Wed December 26, 2018, 21:06:06
Posts: 13

Reply #9 on : Tue January 01, 2019, 14:36:50
Posts: 13

Reply #8 on : Fri January 04, 2019, 21:34:28
Posts: 13

Reply #7 on : Thu January 10, 2019, 04:34:15
Posts: 13

Reply #6 on : Fri January 18, 2019, 04:49:43
Posts: 13

Reply #5 on : Sat February 02, 2019, 06:51:32
Posts: 13

Reply #4 on : Thu February 14, 2019, 17:05:40
Posts: 13
Reply #13 on : Mon December 01, 2014, 12:44:46