mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
Correction to example
This commit is contained in:
@@ -47,12 +47,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// set the filename eg index.inc.tpl
|
// 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) ){
|
if( !smarty->template_exists($template_name) ){
|
||||||
$filename= 'page_not_found.inc.tpl';
|
$mid_template = 'page_not_found.inc.tpl';
|
||||||
}
|
}
|
||||||
$smarty->assign('page_mid', $template_name);
|
$smarty->assign('page_mid', $mid_template);
|
||||||
|
|
||||||
$smarty->display('page_container.tpl');
|
$smarty->display('page_container.tpl');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user