I've been making some pretty extensive changes to a template these days, specifically on PHP files. To avoid losing changes after a template update, it's always been recommended to use custom.css for CSS, but I've never read any forum support replies recommending using the template's "local" folder when making changes to PHP or JS.
For those who don't know what I'm talking about (like me until yesterday), there's a directory called "local" in Joomlart templates. If you create inside "local" a directory structure that matches the one containing the PHP file you want to modify and add a copy of that file, you can modify it, and the changes won't be lost when you update the template. It seems very convenient.
The question is, why isn't it ever recommended when customizations are proposed? Yet, it's a classic case of users asking if the customization will be lost when the template is updated but nobody talk about this simple procedure to avoid it.
Are there any drawbacks using "local"?
Thanks to anyone who can clarify these doubts.
Best regards
Francus