Is there a "right" directory to place XXX.php ?

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?
 
There's no "right place".

I'm actually looking at making the user_ajax.php mechanism more generic, so if there's a user_code.php (or whatever) we'll automatically include it.

-- hugh
 
Thanks, Hugh. For now inflector.php will continue to live in my "_gollynums" directory. When/If the "user_code.php (or whatever)" sees the light of day, I'll move the code.

Thanks again ... now off to think up some more trivial conundrums.;)
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top