w nim utworzylam katalog:
smarty (w nim podkatalogi config, plugins, templates, templates_c oraz skopiowalam tu katalog libs ze smartego. czyli mam tu jeszcze: plugins, sysplugins, Smarty.class.php, debug.tpl)
poza katalogiem utworzylam plik index.php:
<?php require('./smarty/Smarty.class.php'); $tpl = new Smarty; $tpl -> template_dir = './templates/'; $tpl -> compile_dir = './templates_c/'; $tpl -> display('test.tpl'); ?>
zas w katalogu template utworzylam plik test.tpl. Jednak gdy wchodze na strone: http://localhost/smarty_test/index.php
dostaje err:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'test.tpl'' in C:\wamp\www\smarty_test\smarty\sysplugins\smarty_internal_template.php:162 Stack trace: #0 C:\wamp\www\smarty_test\smarty\sysplugins\smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 C:\wamp\www\smarty_test\smarty\Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 C:\wamp\www\smarty_test\smarty\Smarty.class.php(379): Smarty->fetch('test.tpl', NULL, NULL, NULL, true) #3 C:\wamp\www\smarty_test\index.php(10): Smarty->display('test.tpl') #4 {main} thrown in C:\wamp\www\smarty_test\smarty\sysplugins\smarty_internal_template.php on line 162
nie chce mi zaladowac tego tpl. czy ktos z Was wie o co chodzi?? pytalam google ale nie znalazlam odp..