First copy the downloaded smarty folder into your project root directory. Then goto that smarty folder, create a php file (ex: smarty.php) & paste these following codes:
<?php/* This is a class defination for accessing smarty. */ require(”C:/apache2triad/htdocs/project/smarty/libs/Smarty.class.php”);class Template extends Smarty {
function Template() {
$this->Smarty();
//setting up smarty template directory
$this->template_dir=’c:/apache2triad/htdocs/project/templates/’;
//setting up smarty template directory
$this->compile_dir=’c:/apache2triad/htdocs/project/templates_c/’;
//setting up smarty configs directory
$this->config_dir=’c:/apache2triad/htdocs/project/configs/’;
//setting [...]