LMSouq
moodle-core Open

Moodle accessing settings from JavaScript

CO
ComputrScientist
1 month ago
3 views
Problem Description
I'm very new to Moodle dev. I have read the basics of the API, and now started getting my hands dirty by making tinymce plugin. While doing so, I have encountered the following problem: How do I access settings.php from javascript. I know how to access lan/en strings from javascript, I also know that in php, ```$layout_string = $this->get_config('statlayout');```, will exract the setting 'statlayout'. What I want is to access ```$layout_string``` from JavaScript.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base