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.
Reply #7 on : Mon December 01, 2014, 14:44:46
Reply #6 on : Sat October 27, 2018, 09:17:08
Reply #5 on : Tue October 30, 2018, 11:02:06
Reply #4 on : Wed December 26, 2018, 23:06:06
Reply #3 on : Tue January 01, 2019, 16:36:50
Reply #2 on : Fri January 04, 2019, 23:34:28
Reply #1 on : Thu January 10, 2019, 06:34:15