I'm curious if there is a way and what the syntax is for referencing configuration variables defined in local.php. I'd like to be able to do something like:
$conf['myplugin']['myparam'] = 'some data'
I've tried a few different methods to retrieve and reference the global conf array, but nothing seems to work. It might be something stupid syntax wise on my side, but figured I'd ask here just in case.
Silly question perhaps... Did you try declaring the $conf variable as global before you use it, within the function(s)/code?
Why yes...but in the wrong place. :)
See, there's no such thing as a silly question.
For plugin settings there are methods and properties available for accessing settings if they are placed in the right files. For an example take a look at one of the plugins that uses them: