Sorry, I've lost the context here. To what "this one" do you refer?DavidIQ wrote:There are quite a few extensions that do this but you can check how it's done in this one and do something similar:
Thanks for addressing all my questions. Awesome. You said the $config array can change per application, but do you have a link to a good example of it's use?DavidIQ wrote:Same way you'd use any other PHP array:Also, can you give me, or point me to, a code sample of how to use the $config array?$config['whatever_config_key']
I'd like to point out here for future readers and for those with such issues, but have little familiarity with the phpBB platform, that code samples posted by phpBB devs are not always obvious or as complete as believed necessary. So, for example, the above snippet needs more because it is not obvious to the casual integrator that the complete snippet really is this:
Code: Select all
global $config
$foo = $config['whatever_config_key']
I would urge phpBB devs to be more specific to avoid confusion because we're not all as familiar as the devs with the ins and outs of phpBB, or even php generally.
Thanks again.