Skip to content

How to get Config variables

Gunjan Patel edited this page Apr 21, 2016 · 4 revisions

New way to get Config variable

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

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

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