Answer the question
In order to leave comments, you need to log in
How can I tell if a module is in the local folder?
I develop my module, I place it in the local folder. During installation, the module must copy files to the bitrix/admin folder. I'm trying to make a more flexible solution that will take into account that the module is located either in local / modules or in bitrix / modules.
public function installFiles(){
CopyDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/actual/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin'); //нужна константа или метод определяющий что установщик находится в папке local или bitrix
return true;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question