Autoloader::add_core_namespace('Sagepay'); Autoloader::add_classes(array( 'Sagepay\\Sagepay' => __DIR__.'/classes/sagepay.php', ));
return array('default_currency' => 'GBP');
namespace Sagepay; class Sagepay public function __construct() parent::__construct(); \Config::load('sagepay'); public static function registration() return var_dump(\Config::get('sagepay.default_currency'));
echo \Sagepay::registration();Returns NULL I've tried removing the sagepay. in the get() but same result. Any ideas?
return var_dump(\Config::get('default_currency'));now returns Array (), no matter what the config file is (string, array, etc).
return var_dump(\Config::get('sagepay.default_currency'));
return var_dump(\Config::get('default_currency'));
It looks like you're new here. If you want to get involved, click one of these buttons!