Last active
December 11, 2015 09:28
-
-
Save jpdevries/4579637 to your computer and use it in GitHub Desktop.
MODX Revolution PHP Snippet to return site_start context setting of b.com context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// assumes there is a site_url context_setting for b.com with a value such as http://b.com/ | |
$setting = $modx->getObject('modContextSetting', array( | |
'context_key' => 'b.com', | |
'key' => 'site_url', | |
)); | |
return $setting->get('value'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment