Installing Smarty in Windows
This document assumes that your webserver and php5 is running.
Download Smarty - http://smarty.php.net
Installation - Windows, IIS/Apache, PHP5
Extract files, rename Smarty.x.x.x to smarty (suggest OUTSIDE of your www root!)
Example: d:\smarty
Run phpinfo.php to find out your php.ini location
Edit php.ini’s include_path and add the location of the libs folder.
example: include_path = “.;d:\smarty\libs”
Restart IIS/Apache
Setup these two [...]
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 [...]