I'm fixing up another user's contribution (http://www.zen-cart.com/index.php?ma...roducts_id=994 -- updating it to 1.3.8 and fixing a bug), and figured I might as well go all the way and fix it up to normal standards and re-release it.
One of the files in this contribution is in the root directory, which is obviously not a very good place for it, but I'm having a hard time figuring out a reasonable place to put it instead. This is a php file (not auto-loaded) that is referenced by a javascript file (which is auto-loaded). Files in 'extra_datafiles' are auto-loaded, so that folder is no good. It won't work in the base includes, modules, or templates directories (forbidden).
I guess the file is technically a template and thus should go in /includes/templates/YOURTEMPLATE/templates -- but since it's being used directly from a javascript file, I don't know how I'm supposed to get the template name. If I convert the javascript file back into a php file (it was originally, but didn't need to be), then the whole script is shown in the source code directly rather than cleanly linked in a separate file.
So... I guess I'm either looking for another reasonable place to put such a file OR an easy way to make it a php file while keeping it neat and clean. Thoughts?



