displaying multiple templates in a single php Smarty file
问题 Hello stackoverflow community! I haven't been able to find an answer to this problem. I have a contact.php file which looks like this: <?php require_once('lib/smarty/smarty/libs/Smarty.class.php'); $smarty = new Smarty(); $smarty->caching = false; $smarty->debugging = false; $smarty->template_dir = $_SERVER['DOCUMENT_ROOT'].'/templates/'; $smarty->compile_dir = $_SERVER['DOCUMENT_ROOT'].'/cache/smarty/templates_c'; $smarty->cache_dir = $_SERVER['DOCUMENT_ROOT'].'/cache/smarty/cache'; $smarty-