I have been trying to do the good old search and have found plenty of ways of doing what I want... just not where I want to do it, so I finally got to the point of just reaching out to the community.
I am looking at developing an addon and for the most part everything seems simple enough although I am trying to use an template file for part of the admin output and i'm struggling to achieve what I want.
The documentation (https://developers.whmcs.com/addon-modules/admin-area-output/) mentions:
"Things aren’t limited to just one file. Use the _output function to include other files, call templates, etc. The system is flexible."
which I took to mean that I can call a smarty template .tpl file although currently I am at a loss as to how I should be calling it, can anyone give me a quick couple of lines as to whether "templates" actually means smarty templates and how I should make the call.
Something crude like:
$thepage = file_get_contents('/home/user/public_html/dev/modules/addons/theaddon/admin/admin.tpl');
echo $thepage;
works for displaying html although i'd prefer to be able to:
pass {$smarty} variables.
Keeping design and functionality separate.
Appreciate any direct examples, ideas or just pointers in the right direction.