TonyBenedetti
Hobbyist Programmer & Fabrik Fan
I'm using a PHP class in a Fabrik calc element to pluralize nouns. Currently, I have the class in a .php file stuck in a "non-Fabric" directory just below the JPATH_ROOT and I "require_once" the file at the top of the calc element's calculation.
If this was a javascript routine, I would stick the class in a "form_nn.js" file in the components/com_fabrik/js/ directory. But, since this is a PHP file (which I may use on more than one form), I have no clue to the best place the code.
Any clues?
If this was a javascript routine, I would stick the class in a "form_nn.js" file in the components/com_fabrik/js/ directory. But, since this is a PHP file (which I may use on more than one form), I have no clue to the best place the code.
Any clues?