Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include PHP and JS files in SuiteCRM

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?

like image 444
Amirhossein Rzd Avatar asked Feb 17 '16 08:02

Amirhossein Rzd


1 Answers

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.

like image 53
MissAran Avatar answered Oct 08 '22 09:10

MissAran