Simon Harvey Posted February 13, 2018 Share Posted February 13, 2018 I'm sorry if this is answered somewhere already, I'm sure it is, I just can't find it! What is the correct way to include a PHP file within a template file? I have tried this: {{include('../include/myfile.php');}} This includes the correct file but the rest of the page is not displayed, instead there are lots of funny characters (see screenshot). Is anyone able to offer any suggestions? Thanks a lot. Link to comment Share on other sites More sharing options...
newbie LAC Posted February 14, 2018 Share Posted February 14, 2018 Quote {insert="$filename"} Includes a PHP script file Parameters$filename - The filename of the PHP file to include. The output of the file is buffered and output. Link to comment Share on other sites More sharing options...
Simon Harvey Posted February 14, 2018 Author Share Posted February 14, 2018 Great, thanks a lot, that's exactly what I needed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.