Posted by Gene on 06/07/07 10:52
i'm newcomer in using smarty and i have problem like this:
i want to have one template file (e.g. index.tpl) in this file section
which use variable {$content}.
and two files *.php which are using the same template index.tpl and
only change the content.
for example:
/*index.php*/
$smarty = new MySmarty();
$smarty->assign('content','INDEX');
/*about.php*/
$smarty=new MySmarty();
$smarty->assign('content','ABOUT');
how to do this, because this way it doesn't work?
[Back to original message]
|