[eluser]bretticus[/eluser]
It's the same rule for any PHP coding (and many other languages.) If you anticipate the values ever changing during script execution ($config['base_url'], database config, etc.) use $config. If the value will only ever be set once, define it as a constant instead.