Hi,
I’m trying to utilize smarty templates outside of a module. Basically, my folder structure looks like this:
crm/custom/scripts/scriptFolder/scriptFile.php
crm/custom/script/scriptFolder/scriptTemplate.tpl
I have a button that calls scriptFile.php by opening it up in a popup window. In that popup window the scriptFile.php echos out a bunch of information which I want to use a smarty template for instead. I have tried implementing Smarty.class.php but I get an error saying: Unable to read resource which I think I am getting because my tpl file is not in the cache, where Smarty.class.php is looking.
Instead, I would like to have a tpl file in crm/custom/script/scriptFolder and use it to output my information in scriptFile.php
Is this possible to do?