Mam smarty-4.3.4 i myślę, że chodzi o strukturę katalogów, najpierw tworzyłem z kursu, i przy wywoływaniu szablonu, po prostu wydrukowało tekst:
C:\xampp\smarty
C:\tmp\smarty
C:\xampp\smarty //wypakowuje paczke
C:\xampp\htdocs\example
C:\xampp\htdocs\smarty
C:\xampp\htdocs\smarty\templates
C:\xampp\htdocs\smarty\configs
C:\xampp\smarty\templates_c
C:\xampp\smarty\cache
restartuje xammpa
tworzę dwa pliki:
index.php mam:
<?php
require_once('smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = 'templates/';
$smarty->compile_dir = 'templates_c/';
$smarty->cache_dir = 'cache/';
$smarty->assign ('title', 'To jesttnoy tytul');
$smarty->assign ('content', 'to jesttroche treści');
$smarty->display ('szblon.tpl');
?>
szblon.tpl mam:
<html lang="pl">
<head>
<title>($tittle)</title>
<meta charset="utf-8">
</head>
<body>
($content)
pytanie jest gdzie w takiej strukturze będzie index.php, a gdzie szblon.tpl ?
na tą chwilę pliki są tutaj: D:\xampp\htdocs
ekran wyświetla ($content)
kierowałem się tym przykładem:
https://help.islonline.com/19447/166304