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 #3 on : Mon December 01, 2014, 14:44:46
Reply #2 on : Sat October 27, 2018, 09:17:08
Reply #1 on : Tue October 30, 2018, 11:02:06