Hello all... We're creating a new local plugin for generate an slide show. In db/settings.php file we have defined the fields we need to configure the plugin: images, descriptions and url's... Looks like in mdl_config_plugin table, values are beign stored fine:
If I look in mdl_file table, also looks good:
$itemid = 0;
$filepath = get_config('local_slider','sliderimage1');
$filearea = 'sliderimage1';
$syscontext = context_system::instance();
$url = moodle_url::make_file_url("$CFG->wwwroot/pluginfile.php", "/$syscontext->id/$component/$filearea/$itemid".$filepath);
And that code, return this url:
If I try to see that file, I get an error message because moodle don't find the file.
I have read some previous post about that theme, and I don't find my mistake... Any suggestions? What am I doing wrong?
Thanks in advance for your time...