na początek wrzucę kod, a następnie opisze problem.
<?php //error_reporting(E_ALL|E_STRICT); require 'Smarty-3.1.11/libs/Smarty.class.php'; $Smarty->assign('title', 'Przykład zastosowania Smarty'); $Smarty->display('przyklad.tpl.htm'); ?>
bo wrzuceniu tego w przeglądarkę wyrzuca mi taki błąd
Warning: require(): Unable to access Smarty-3.1.11/libs/Smarty.class.php in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0 Warning: require(Smarty-3.1.11/libs/Smarty.class.php): failed to open stream: No such file or directory in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0 Fatal error: require(): Failed opening required 'Smarty-3.1.11/libs/Smarty.class.php' (include_path='.;C:\xampp\php\PEAR;C:\xampp\php\PEAR\PHP') in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0
i nie bardzo wiem o co chodzi. Dopiero się uczę działać na smartach więc pomoc będzie mile widzana.