Skip to content

How to get Config variables

Gunjan Patel edited this page Aug 29, 2016 · 4 revisions

New way to get Config variable since 1.6 version

$config = Redshop::getConfig();
$config->get('SHOP_NAME');

// Or directly
$shopName = Redshop::getConfig()->get('SHOP_NAME');

Configuration file path

After installing redSHOP configuration can be found here administrator/components/com_redshop/config/config.php

Backward Compatibility

Legacy method of directly using SHOP_NAME type variable is still works until redSHOP 1.7. In redSHOP 1.7 we have planned completely switch to new way.

Clone this wiki locally