Correction to example

This commit is contained in:
pete_morgan
2005-06-05 17:56:39 +00:00
parent eea494dcd2
commit 712155305d

View File

@@ -47,12 +47,12 @@
<?php
// set the filename eg index.inc.tpl
$template_name = $_GET['page'].'inc.tpl';
$mid_template = $_GET['page'].'inc.tpl';
if( !smarty->template_exists($template_name) ){
$filename= 'page_not_found.inc.tpl';
}
$smarty->assign('page_mid', $template_name);
$mid_template = 'page_not_found.inc.tpl';
}
$smarty->assign('page_mid', $mid_template);
$smarty->display('page_container.tpl');