Fatal error:Uncaught--Smarty:Unable to load template file 'H.tpl'<--thrown in C:\wamp\www\Smarty\libs\sysplugins\smarty_internal_templatebase.php on line127
Hello , When i try to run a smarty program then i face this fetal error . I don't know how to remove this error. I create two files, one for .php and another for .tpl
PHP File : HelloWorld.php
//This is a simple comment use in php file
require './libs/Smarty.class.php';//require function includes Smarty class
require 'demo/templates/H.tpl';
$smarty=new Smarty;// instantiates an object $smarty of class Smarty
$smarty->caching =true;//enable the caching
$smarty->assign ('name', 'hello world');//used to assign values to the templates
$smarty->display ('H.tpl');//this is used to display the template
?>
TPL File : H.tpl
<html>
<head>
<title>My first Smarty program</title>
</head>
<body>
{*This is a comment line of smarty *}
{$name}{*Smarty will replace the assigned content *}
</body>
</html>