Quote from: BobRay at Feb 05, 2009, 10:36 PM
Yikes. I’ve been assuming they were synonymous. Is this true for base_path and base_url also? Which would be appropriate for SPForm, Captcha, and ezFAQ?
Yes, this is a new challenge with the introduction of advanced multi-site capabilities and contexts; components will have to be aware of and choose between the configuration constants which represent what would be shared or common paths/urls, and the configuration settings, which can be modified by context and/or user settings.
For instance, you may want to share some common images or CSS elements via MODX_ASSETS_PATH/URL and then provide some context specific code and/or additional CSS elements via the $modx->config[’assets_path’]/$modx->config[’assets_url’] settings. This could also set up the ability to handle a central management interface and define a separate manager interface for specific contexts, which will be very handy for multi-domain setups where you offer limited/custom admin features for specific domains.
As for which is appropriate, there are a number of factors to consider, but in general, if you are writing components that are meant to be shared across contexts, the constants would be appropriate. If they are associated with elements that are meant to be customizable by context (or user), then use the config variables.