This topic is locked

Prevent Overwriting of certain files in runnerJS folder

5/20/2024 4:39:44 PM
Calendar Template general questions
X
XEMLO author

I'm writing some code which uses the Calendar template with my own tables, I have modified the calendar_functions.php file to fit my needs. When I build the project, any files that I have modified in the runnerJS folder get overwritten. Is there a way to prevent the modification of the calendar_functions.php file when building the project?

C
Chris Whitehead 5/21/2024

I don't have the calender template so can't see what calendar_functions.php is like.

You could update it in the main project directory so it's always using that file to build your project with.

Is it a class with static function or just functions?

If it's a class and you don't want to change the original calendar_functions.php you can extend the class, have all your modifications in the extended part and include this in the initialise app under events.