Quote:
Originally Posted by k0nr4d
Smarty in NATS has including disabled. {include file='page_footer.tpl'} will not work.
You need to use a smarty plugin. Hit up TheDoc, i wrote one for him some time ago.
|
Yeah your right,
Here's what someone would need to do if they wanted the custom plugin function:
Goto your nats/smarty-2.6.18/libs/plugins (or whatever version of smarty you have) and create a file called: function.fileinc.php then enter this into the file:
<?php
function smarty_function_fileinc($params)
{ include($params['file']); }
?>
After that file is created and the code inserted, you can use this smarty tag on any of the NATS Templates:
{fileinc file="path/to/file"}
Hope this helps everyone, and people in the future
Jim