Hello,
I'm building a module which needs to copy a template file from its module directory to /templates/default/.
I'm using copy(source, dest) and I don't even get an error message with active debugging. Just nothing happens.
I assume there is some kind of permission problem, but I don't know where to start with that, since I'm not very familiar with Linux (the server runs apache2 on it).
Thank you for any help!
This is what I'm using for tests the ___install() function of the module:
$path = wire(config)->paths->siteModules.'fma-helper/';
copy($path.'_head_metadata.php', $path.'testtesttest.php')