Moodle quiz with audio : How to give path to the audio file using $CFG? -


i developer working on first moodle project. have create quiz audio question. have checked forums steps , try. how refer audio file ? how can use $cfg indicate path audio file ?

please help. moodle version 2.8

is single hard-coded audio file in moodle code directory? if $cfg->wwwroot.'/path/to/file'.

if file uploaded question created, $cfg won't help, need use moodle files api -https://docs.moodle.org/dev/file_api can take bit of getting used to, not bad once you've got hang of it.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -