I've got a Drupal site, and WHMCS (www.whmcs.com) site. I am busy integrating the two. I was wondering if there would be a way to call a function that would return the drupal template (processed) so that I can only provide the $content variable with my own variable. Effectively, this will allow me to integrate my WHMCS template with my Drupal template so that any changes made in the Drupal template, reflects on my WHMCS installation.
WHMCS uses the Smarty Template Engine. In other words, you can:
Include code like this:
{php} print 'hello'; {/php}
Work with the header.tpl and footer.tpl pages ( which mean the ideal would be a drupal function that returns everything BEFORE print $content, and another function that returns everything AFTER print $content).
Anyone got some pointers or suggestions? Or should I not even think of going this route?