Hello,
I'm new to Joomla and K2 and would like the insight of experienced K2 folks. I've created a custom K2 template, which is stored in:
[mySite]/templates/rt_modulus_j16/html/com_k2/[myTemplate]
I've made a number of changes to the PHP code in the template files. I've also created a PHP class that's used by this template. Ideally I'd like to make this custom class available site-wide (i.e. not just tied to this template).
One specific question I have is where should I place this custom PHP class, and what do I need to do to make it generally available. I've read some things about auto-loading of classes, but I've not found a good explanation of this yet, and am not sure this is the proper approach.
My broader concern is I want to make my customizations in a way that will minimize the impact of any future updates to Joomla and/or K2. What suggestions do you have with regard to this?
Thanks,
Preston
I'm new to Joomla and K2 and would like the insight of experienced K2 folks. I've created a custom K2 template, which is stored in:
[mySite]/templates/rt_modulus_j16/html/com_k2/[myTemplate]
I've made a number of changes to the PHP code in the template files. I've also created a PHP class that's used by this template. Ideally I'd like to make this custom class available site-wide (i.e. not just tied to this template).
One specific question I have is where should I place this custom PHP class, and what do I need to do to make it generally available. I've read some things about auto-loading of classes, but I've not found a good explanation of this yet, and am not sure this is the proper approach.
My broader concern is I want to make my customizations in a way that will minimize the impact of any future updates to Joomla and/or K2. What suggestions do you have with regard to this?
Thanks,
Preston