I am using SuiteCRM 7.4.3 and need to include two files (a PHP file and a JS file) into the whole project instance. What are the best practices in this situation? Where should I copy the source files and where do I include them?
SuiteCRM uses its own TimeDate class which from the look of it you will need to extend to create your own (this JalaliDate). Honestly, I don't know how you could implement this without affecting the core SuiteCRM massively.
However, the files you will need to look at are include/TimeDate.php (which is the class Suite uses for all its time formatting). We always recommend that you try to make everything upgrade safe i.e. everything is within custom folder - however, from the look of this it won't be.
But, what I usually do when I include SDK of other applications I place it in custom/include/ and then whenever I need it I link it from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With