mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
Correction to example
This commit is contained in:
@@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user